fix: not all clip settings are copied properly (#953)

Closes: #949
This commit is contained in:
bd_ 2024-08-05 21:13:50 -07:00 committed by GitHub
parent 2cd996db55
commit 098a85af50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -264,10 +264,10 @@ namespace nadena.dev.modular_avatar.animation
AnimationUtility.GetObjectReferenceCurve(originalClip, objBinding));
}
newClip.wrapMode = newClip.wrapMode;
newClip.legacy = newClip.legacy;
newClip.frameRate = newClip.frameRate;
newClip.localBounds = newClip.localBounds;
newClip.wrapMode = originalClip.wrapMode;
newClip.legacy = originalClip.legacy;
newClip.frameRate = originalClip.frameRate;
newClip.localBounds = originalClip.localBounds;
AnimationUtility.SetAnimationClipSettings(newClip, AnimationUtility.GetAnimationClipSettings(originalClip));
if (clipCache != null)