diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-25 15:13:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-25 15:13:24 +0100 |
commit | 203e07aa39d5b55c8c16842d3e2e628209a063c4 (patch) | |
tree | 5298c9ce8a4d7b3344d9369c940b076295c25eb5 | |
parent | 7cbe1835f97ba8753ce3230537428aa42606ec88 (diff) | |
parent | 5ea4a8b4214571087a42a29b2caf9053bbb2e548 (diff) |
Merge pull request #57190 from timothyqiu/ani-node-rename
-rw-r--r-- | editor/plugins/animation_blend_tree_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/animation_blend_tree_editor_plugin.cpp b/editor/plugins/animation_blend_tree_editor_plugin.cpp index b889742b19..e46c81b77e 100644 --- a/editor/plugins/animation_blend_tree_editor_plugin.cpp +++ b/editor/plugins/animation_blend_tree_editor_plugin.cpp @@ -898,6 +898,9 @@ void AnimationNodeBlendTreeEditor::_node_renamed(const String &p_text, Ref<Anima } void AnimationNodeBlendTreeEditor::_node_renamed_focus_out(Node *le, Ref<AnimationNode> p_node) { + if (le == nullptr) { + return; // The text_submitted signal triggered the graph update and freed the LineEdit. + } _node_renamed(le->call("get_text"), p_node); } |