Skip to content

Commit

Permalink
Fix AnimationTree editor crash when renaming node
Browse files Browse the repository at this point in the history
(cherry picked from commit eac8065)
  • Loading branch information
timothyqiu authored and akien-mga committed Mar 16, 2021
1 parent ee86611 commit 966c896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/animation_blend_tree_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 966c896

Please sign in to comment.