summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-01-17 14:35:09 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-01-17 14:35:09 +0800
commit19634bd1a10c902dedeac2fc21e3448e53d7d781 (patch)
tree95e429d3a1753541720c038d0d4154859dc99836
parent8958e1b35297baa8ef4f9e03bb4ad105500e3a0c (diff)
Fix crash when undoing node creation of BlendTree editor
-rw-r--r--editor/plugins/animation_blend_tree_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}