diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-15 18:33:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-15 18:33:31 +0100 |
commit | 8e293bac4e4c75179c0691f358fd8ef57a2bcf93 (patch) | |
tree | 06103db1fbc353c7fe20e331ea702652b67299fe /editor | |
parent | da15867b8c743205f4a3c598bc539cd8fdd12a96 (diff) | |
parent | eac806547fc866263a290a06f772cb1eea494b58 (diff) |
Merge pull request #47033 from timothyqiu/crash-fix
Fix AnimationTree editor crash when renaming node
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/animation_blend_tree_editor_plugin.cpp | 2 |
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 e7e069e8b6..fdbbe5184b 100644 --- a/editor/plugins/animation_blend_tree_editor_plugin.cpp +++ b/editor/plugins/animation_blend_tree_editor_plugin.cpp @@ -139,7 +139,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_theme_color("font_color", "Label")); - name->connect("text_entered", callable_mp(this, &AnimationNodeBlendTreeEditor::_node_renamed), varray(agnode)); + name->connect("text_entered", callable_mp(this, &AnimationNodeBlendTreeEditor::_node_renamed), varray(agnode), CONNECT_DEFERRED); name->connect("focus_exited", callable_mp(this, &AnimationNodeBlendTreeEditor::_node_renamed_focus_out), varray(name, agnode), CONNECT_DEFERRED); base = 1; node->set_show_close_button(true); |