-
-
Notifications
You must be signed in to change notification settings - Fork 22.2k
Defer ActionMapEditor::_action_edited
signal to prevent tree updates when tree is blocked.
#89346
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
Conversation
@@ -429,6 +429,7 @@ void ActionMapEditor::update_action_list(const Vector<ActionInfo> &p_action_info | |||
// Update Tree... | |||
|
|||
TreeItem *action_item = action_tree->create_item(root); | |||
ERR_FAIL_NULL(action_item); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should never trigger, added just in case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this comes from the issue, but there are more potentially crashing spots like that. Kinda odd to handle only this one specifically.
…s when tree is blocked.
item_edited
signal when tree updates are blocked.ActionMapEditor::_action_edited
signal to prevent tree updates when tree is blocked.
Updated to defer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason I can't reproduce the crash on master 🤔
The fix looks fine, assuming it's still relevant.
Thanks! |
Should fix #86612, by preventing tree update inside
propagate_mouse_event
, but I'm not sure if this is the best fix (tree internal login probably should be changed to be more robust).