mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-06 20:48:59 +08:00
Fix automatic outfit setup
This commit is contained in:
parent
058f095bd0
commit
3a7aac85c0
@ -18,6 +18,7 @@ namespace net.fushizen.modular_avatar.core.editor
|
|||||||
var outfitArmature = outfitHips.transform.parent;
|
var outfitArmature = outfitHips.transform.parent;
|
||||||
|
|
||||||
var merge = Undo.AddComponent<ModularAvatarMergeArmature>(outfitArmature.gameObject);
|
var merge = Undo.AddComponent<ModularAvatarMergeArmature>(outfitArmature.gameObject);
|
||||||
|
merge.mergeTarget = new AvatarObjectReference();
|
||||||
merge.mergeTarget.referencePath = RuntimeUtil.RelativePath(avatarRoot, avatarArmature.gameObject);
|
merge.mergeTarget.referencePath = RuntimeUtil.RelativePath(avatarRoot, avatarArmature.gameObject);
|
||||||
merge.InferPrefixSuffix();
|
merge.InferPrefixSuffix();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user