Fix copy logic of sync layer (#1135)

This commit is contained in:
RayLight1732 2024-09-14 10:06:56 +09:00 committed by GitHub
parent 3be3cfb74a
commit 4f77723906
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();