소스 검색

Merge pull request #57190 from timothyqiu/ani-node-rename

Rémi Verschelde 3 년 전
부모
커밋
203e07aa39
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      editor/plugins/animation_blend_tree_editor_plugin.cpp

+ 3 - 0
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);
 }