Browse Source

Fix crash when undoing node creation of BlendTree editor

(cherry picked from commit 19634bd1a10c902dedeac2fc21e3448e53d7d781)
Haoyu Qiu 3 năm trước cách đây
mục cha
commit
28ae995a1a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
 	}