mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
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:
parent
2cf5967a42
commit
e8f7144b6c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user