mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
Fix copy logic of sync layer (#1135)
This commit is contained in:
parent
3be3cfb74a
commit
4f77723906
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user