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 crash when playing Tween right after finishing #65896

Merged
merged 1 commit into from
Sep 16, 2022

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Sep 16, 2022

Fixes #65891

This is fun edge case. The Tween normally gets initialized before the while loop, but if you restart it right after finished signal, it will be running again mid-loop and bypass the initialization logic. This caused it to access step outside of the defined animation., because the value wasn't reset.

@KoBeWi KoBeWi added bug crash cherrypick:3.x Considered for cherry-picking into a future 3.x release topic:animation labels Sep 16, 2022
@KoBeWi KoBeWi added this to the 4.0 milestone Sep 16, 2022
@KoBeWi KoBeWi requested a review from a team as a code owner September 16, 2022 12:22
@akien-mga akien-mga added the cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release label Sep 16, 2022
@akien-mga akien-mga merged commit 27a33e7 into godotengine:master Sep 16, 2022
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the breakt_the_crash branch September 16, 2022 13:06
@akien-mga
Copy link
Member

Cherry-picked for 3.6.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Sep 20, 2022
@akien-mga
Copy link
Member

Cherry-picked for 3.5.1.

@akien-mga akien-mga removed the cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release label Sep 20, 2022
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.

Repeated use of SceneTreeTween causes an endless loop
2 participants