8000 fix: loop time not preserved when there are animation events by bdunderscore · Pull Request #600 · bdunderscore/ndmf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

bdunderscore
Copy link
Owner

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.

@bdunderscore bdunderscore requested a review from Copilot April 17, 2025 02:03
Copy link
Contributor
@Copilot Copilot AI left a 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.
Copy link
Contributor
@Copilot Copilot AI left a 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);

@bdunderscore bdunderscore merged commit 353eae4 into main Apr 17, 2025
7 checks passed
bdunderscore added a commit that referenced this pull request Apr 17, 2025
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0