From 5ea4a8b4214571087a42a29b2caf9053bbb2e548 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Tue, 25 Jan 2022 20:18:40 +0800 Subject: Fix crash after renaming an animation node --- editor/plugins/animation_blend_tree_editor_plugin.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'editor') 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 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); } -- cgit v1.2.3