Parcourir la source

Fix crash when undoing node creation of BlendTree editor

(cherry picked from commit 19634bd1a10c902dedeac2fc21e3448e53d7d781)
Haoyu Qiu il y a 3 ans
Parent
commit
28ae995a1a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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() {
 void AnimationNodeBlendTreeEditor::_update_graph() {
-	if (updating) {
+	if (updating || blend_tree.is_null()) {
 		return;
 		return;
 	}
 	}