From 274ed822836b435ab7d5f66b20526f9da18105d7 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 7 Oct 2021 19:45:03 +0800 Subject: [PATCH] Fix make sub-resource crash in AnimationTreeEditor --- editor/plugins/animation_tree_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/animation_tree_editor_plugin.cpp b/editor/plugins/animation_tree_editor_plugin.cpp index cd84be0c25c..6c5606fbfd1 100644 --- a/editor/plugins/animation_tree_editor_plugin.cpp +++ b/editor/plugins/animation_tree_editor_plugin.cpp @@ -55,7 +55,7 @@ void AnimationTreeEditor::edit(AnimationTree *p_tree) { tree = p_tree; Vector path; - if (tree->has_meta("_tree_edit_path")) { + if (tree && tree->has_meta("_tree_edit_path")) { path = tree->get_meta("_tree_edit_path"); edit_path(path); } else {