浏览代码

Fix crash when undoing node creation of BlendTree editor

Haoyu Qiu 3 年之前
父节点
当前提交
19634bd1a1
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 	}