mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-17 11:50:11 +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);
|
var overrideMotion = layer.GetOverrideMotion(state);
|
||||||
if (overrideMotion != null)
|
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();
|
var overrideBehaviors = (StateMachineBehaviour[])layer.GetOverrideBehaviours(state)?.Clone();
|
||||||
|
Loading…
Reference in New Issue
Block a user