From 4f77723906008f86d1bba738b6aa5fdb4500e443 Mon Sep 17 00:00:00 2001 From: RayLight1732 <56024986+RayLight1732@users.noreply.github.com> Date: Sat, 14 Sep 2024 10:06:56 +0900 Subject: [PATCH] Fix copy logic of sync layer (#1135) --- Editor/Animation/AnimatorCombiner.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Editor/Animation/AnimatorCombiner.cs b/Editor/Animation/AnimatorCombiner.cs index 2c0dce5c..36ddf4de 100644 --- a/Editor/Animation/AnimatorCombiner.cs +++ b/Editor/Animation/AnimatorCombiner.cs @@ -494,7 +494,8 @@ namespace nadena.dev.modular_avatar.animation var overrideMotion = layer.GetOverrideMotion(state); if (overrideMotion != null) { - newLayer.SetOverrideMotion((AnimatorState)_cloneMap[state], overrideMotion); + var newMotion = _deepClone.DoClone(overrideMotion, basePath, _cloneMap); + newLayer.SetOverrideMotion((AnimatorState)_cloneMap[state], newMotion); } var overrideBehaviors = (StateMachineBehaviour[])layer.GetOverrideBehaviours(state)?.Clone();