Skip to content
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

Fix AnimationTree function call track loop #51576

Closed
wants to merge 1 commit into from

Conversation

timothyqiu
Copy link
Member

@timothyqiu timothyqiu commented Aug 12, 2021

Fixes #50636.

If the animation does not loop, delta time should be set to zero if we're already at the end of the animation.

I'm pretty sure this fixes the cause of the issue. But I'm not 100% sure there is no other code that depends on the old behavior, it's odd that a stopped animation would revisit a method call keyframe repeatedly though.

For 3.x, this is basically the same except that time uses float instead of double.

@timothyqiu timothyqiu added this to the 4.0 milestone Aug 12, 2021
@timothyqiu timothyqiu requested a review from a team as a code owner August 12, 2021 15:41
@TokageItLab
Copy link
Member

I remember I had a similar problem before and solved it using a different method in #48332, but I don't know if it's the right way too.

@akien-mga
Copy link
Member

Superseded by #53819.

@akien-mga akien-mga closed this Nov 9, 2021
@akien-mga akien-mga added archived and removed cherrypick:3.x Considered for cherry-picking into a future 3.x release labels Nov 9, 2021
@timothyqiu timothyqiu deleted the anim-tree-delta branch April 2, 2022 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AnimationTree function call track loop
3 participants