summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN0hbdy <austen.mcrae@gmail.com>2020-01-18 12:12:13 -0800
committerN0hbdy <austen.mcrae@gmail.com>2020-01-18 12:12:13 -0800
commit3fffb1c0312a354340fd1b59777793f9fdc8cc0b (patch)
treef0ef2c995129cc2f843c0cb69f92176d1095a136
parentd4a222cd9d849a63f0535f70cbf78700bc5c815b (diff)
Fix AnimationTree Editor by using CONNECT_DEFERRED on LineEdit
Not having this causes the LineEdit to be deleted while still processing signals, which can cause a crash during focus changes. Fixes 35293
-rw-r--r--editor/plugins/animation_blend_tree_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/animation_blend_tree_editor_plugin.cpp b/editor/plugins/animation_blend_tree_editor_plugin.cpp
index def3f4bfec..2de224c043 100644
--- a/editor/plugins/animation_blend_tree_editor_plugin.cpp
+++ b/editor/plugins/animation_blend_tree_editor_plugin.cpp
@@ -147,7 +147,7 @@ void AnimationNodeBlendTreeEditor::_update_graph() {
node->add_child(name);
node->set_slot(0, false, 0, Color(), true, 0, get_color("font_color", "Label"));
name->connect("text_entered", this, "_node_renamed", varray(agnode));
- name->connect("focus_exited", this, "_node_renamed_focus_out", varray(name, agnode));
+ name->connect("focus_exited", this, "_node_renamed_focus_out", varray(name, agnode), CONNECT_DEFERRED);
base = 1;
node->set_show_close_button(true);
node->connect("close_request", this, "_delete_request", varray(E->get()), CONNECT_DEFERRED);