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 edited node being removed before editor plugin handles focus loss #94162

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

anniryynanen
Copy link
Contributor

CanvasItemEditor::_select_click_on_item was causing EditorNode::_plugin_over_edit to be called before focus exit had time to propagate to SpriteFramesEditor::_animation_speed_changed.

Fixes #93817.

The defer is needed, but I'm not sure if this is the best place to put it.

@KoBeWi
Copy link
Member

KoBeWi commented Jul 10, 2024

The edit_node() call can be removed altogether. It's handled by editor selection (which is also why the crash is happening).

@anniryynanen
Copy link
Contributor Author

Most excellent!

`CanvasItemEditor::_select_click_on_item` was causing
`EditorNode::_plugin_over_edit` to be called before focus exit had time
to propagate to `SpriteFramesEditor::_animation_speed_changed`.
@akien-mga akien-mga merged commit 685413a into godotengine:master Jul 10, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@anniryynanen anniryynanen deleted the sprite-frames-crash branch July 11, 2024 04:39
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.

Editor crash when clicking a collision object when editing animation FPS
4 participants