Browse Source

Fix crash when undoing node creation of BlendTree editor

(cherry picked from commit 19634bd1a10c902dedeac2fc21e3448e53d7d781)
Haoyu Qiu 3 years ago
parent
commit
28ae995a1a
1 changed files with 1 additions and 1 deletions
  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;
 	}