Fix AnimationTree editor crash when renaming node

(cherry picked from commit eac806547f)
This commit is contained in:
Haoyu Qiu 2021-03-16 00:21:20 +08:00 committed by Rémi Verschelde
parent ee8661158c
commit 966c89657b
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -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);