From 966c89657bd5baac0f665903fcae3d177338a5f4 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Tue, 16 Mar 2021 00:21:20 +0800 Subject: [PATCH] Fix AnimationTree editor crash when renaming node (cherry picked from commit eac806547fc866263a290a06f772cb1eea494b58) --- editor/plugins/animation_blend_tree_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/animation_blend_tree_editor_plugin.cpp b/editor/plugins/animation_blend_tree_editor_plugin.cpp index 883f9fda91b..6d3d38d3665 100644 --- a/editor/plugins/animation_blend_tree_editor_plugin.cpp +++ b/editor/plugins/animation_blend_tree_editor_plugin.cpp @@ -146,7 +146,7 @@ void AnimationNodeBlendTreeEditor::_update_graph() { name->set_expand_to_text_length(true); 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("text_entered", this, "_node_renamed", varray(agnode), CONNECT_DEFERRED); name->connect("focus_exited", this, "_node_renamed_focus_out", varray(name, agnode), CONNECT_DEFERRED); base = 1; node->set_show_close_button(true);