Skip to content

Fix incorrect animation section when playing a custom timeline with stretched time scale.#118114

Open
chocola-mint wants to merge 1 commit intogodotengine:masterfrom
chocola-mint:fix-#118101
Open

Fix incorrect animation section when playing a custom timeline with stretched time scale.#118114
chocola-mint wants to merge 1 commit intogodotengine:masterfrom
chocola-mint:fix-#118101

Conversation

@chocola-mint
Copy link
Copy Markdown
Contributor

Fixes #118101

The PR basically sets the animation section's end to be the animation length when AnimationNodeAnimation's use_custom_timeline and stretch_time_scale are both enabled. (This effectively just plays the original animation at a different speed)

In #91765, I incorrectly set the animation section's end to be the custom timeline's length. However, AnimationNodeAnimation had been relying on the buggy behavior in #116002, which allowed it to evaluate keys after the incorrect animation section, which is why this error managed to stay hidden.

#116046 fixed the buggy behavior, revealing the error in AnimationNodeAnimation.

@chocola-mint chocola-mint requested a review from a team as a code owner April 2, 2026 11:54
@Nintorch Nintorch added this to the 4.7 milestone Apr 2, 2026
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.

Blendtree Animation Custom Timeline/Stretch Time Scale no longer works in 4.6.2

2 participants