-
Notifications
You must be signed in to change notification settings - Fork 26
fix: loop time not preserved when there are animation events #600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 19 changed files in this pull request and generated no comments.
Files not reviewed (17)
- UnitTests~/AnimationServices/LoopTimeIsPreserved.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF Event.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF Event.anim.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF RefClip Event.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF RefClip Event.anim.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF RefClip.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF RefClip.anim.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF.anim.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON Event.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON Event.anim.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON RefClip Event.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON RefClip Event.anim.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON RefClip.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON RefClip.anim.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON.anim.meta: Language not supported
Comments suppressed due to low confidence (1)
UnitTests~/AnimationServices/VirtualClipTest.cs:395
- [nitpick] The test 'LoopTime_IsPreserved_NoRefClip' is parameterized with a 'hasRefClip' flag, which may lead to ambiguity given that the PR title and description focus on scenarios without an additive reference clip. Consider splitting the test into distinct cases to clearly separate scenarios with and without a reference clip.
[Test]
When an animation clip contains animation events, but does not have an additive reference clip, we would fail to preserve animation settings such as loop time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 4 out of 21 changed files in this pull request and generated no comments.
Files not reviewed (17)
- UnitTests~/AnimationServices/LoopTimeIsPreserved.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF Event.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF Event.anim.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF RefClip Event.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF RefClip Event.anim.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF RefClip.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF RefClip.anim.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_OFF.anim.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON Event.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON Event.anim.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON RefClip Event.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON RefClip Event.anim.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON RefClip.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON RefClip.anim.meta: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON.anim: Language not supported
- UnitTests~/AnimationServices/LoopTimeIsPreserved/LoopTime_ON.anim.meta: Language not supported
Comments suppressed due to low confidence (1)
Editor/API/AnimatorServices/VirtualObjects/VirtualClip.cs:258
- Consider adding unit tests specifically targeting the new else branch to ensure that loop time and other clip settings are correctly preserved when no additive reference clip is provided.
AnimationUtility.SetAnimationClipSettings(_clip, settings);
When an animation clip contains animation events, but does not have an additive reference clip, we would fail to preserve animation settings such as loop time.
When an animation clip contains animation events, but does not have an additive reference clip, we would fail to preserve animation settings such as loop time.