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 Undo/Redo not working in Bezier Animation Editor when moving keys #97169

Merged

Conversation

Dowsley
Copy link
Contributor

@Dowsley Dowsley commented Sep 18, 2024

Fixes #97146, introduced by #96753

In the PR I was registering the animation refresh do and undo method call inside AnimationBezierTrackEdit::_bezier_track_insert_key_at_anim thinking it was the correct place to refresh once the track is moved.

This is incorrect since this method itself is called by the undo_redo.commit() registed back in gui_input. So I moved it to the ape call to gui_input, after all other undo_redo callbacks caused by a move are registered.

@akien-mga akien-mga added the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Sep 19, 2024
@akien-mga akien-mga merged commit ff334cd into godotengine:master Sep 19, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release regression topic:animation topic:editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undo/Redo does not work in Bezier Animation Editor when moving keys
3 participants