From 19634bd1a10c902dedeac2fc21e3448e53d7d781 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Mon, 17 Jan 2022 14:35:09 +0800 Subject: Fix crash when undoing node creation of BlendTree editor --- editor/plugins/animation_blend_tree_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/animation_blend_tree_editor_plugin.cpp b/editor/plugins/animation_blend_tree_editor_plugin.cpp index 10e2f5f1d0..71db40a829 100644 --- a/editor/plugins/animation_blend_tree_editor_plugin.cpp +++ b/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; } -- cgit v1.2.3