Fix automatic outfit setup

This commit is contained in:
bd_ 2022-11-03 18:09:20 -07:00
parent 058f095bd0
commit 3a7aac85c0

View File

@ -18,6 +18,7 @@ namespace net.fushizen.modular_avatar.core.editor
var outfitArmature = outfitHips.transform.parent;
var merge = Undo.AddComponent<ModularAvatarMergeArmature>(outfitArmature.gameObject);
merge.mergeTarget = new AvatarObjectReference();
merge.mergeTarget.referencePath = RuntimeUtil.RelativePath(avatarRoot, avatarArmature.gameObject);
merge.InferPrefixSuffix();
}