Explorar o código

Fix crash when undoing node creation of BlendTree editor

(cherry picked from commit 19634bd1a10c902dedeac2fc21e3448e53d7d781)
Haoyu Qiu %!s(int64=3) %!d(string=hai) anos
pai
achega
28ae995a1a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/plugins/animation_blend_tree_editor_plugin.cpp

+ 1 - 1
editor/plugins/animation_blend_tree_editor_plugin.cpp

@@ -103,7 +103,7 @@ void AnimationNodeBlendTreeEditor::_property_changed(const StringName &p_propert
 }
 
 void AnimationNodeBlendTreeEditor::_update_graph() {
-	if (updating) {
+	if (updating || blend_tree.is_null()) {
 		return;
 	}