fix: Rename Parameters should not impact sub-animator components (#659)

Sub-animators have an independent parameter namespace from the main avatar, so we shouldn't
rename them.
This commit is contained in:
bd_ 2024-02-12 14:59:50 +09:00 committed by GitHub
parent 2cf5967a42
commit e8f7144b6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -308,26 +308,6 @@ namespace nadena.dev.modular_avatar.core.editor
break;
}
case Animator anim:
{
if (willPurgeAnimators) break; // animator will be deleted in subsequent processing
// RuntimeAnimatorController may be AnimatorOverrideController, convert in case of AnimatorOverrideController
if (anim.runtimeAnimatorController is AnimatorOverrideController overrideController)
{
anim.runtimeAnimatorController = _context.ConvertAnimatorController(overrideController);
}
var controller = anim.runtimeAnimatorController as AnimatorController;
if (controller != null)
{
ProcessAnimator(ref controller, remaps);
anim.runtimeAnimatorController = controller;
}
break;
}
case ModularAvatarMergeAnimator merger:
{
// RuntimeAnimatorController may be AnimatorOverrideController, convert in case of AnimatorOverrideController