mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-01 20:25:07 +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 merge = Undo.AddComponent<ModularAvatarMergeArmature>(outfitArmature.gameObject);
|
||||
merge.mergeTarget = new AvatarObjectReference();
|
||||
merge.mergeTarget.referencePath = RuntimeUtil.RelativePath(avatarRoot, avatarArmature.gameObject);
|
||||
merge.InferPrefixSuffix();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user