diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-10-07 19:45:03 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-10-07 19:45:03 +0800 |
commit | 274ed822836b435ab7d5f66b20526f9da18105d7 (patch) | |
tree | 37169354ced5015fad2039f6b28866e66dc176b8 /editor | |
parent | 410cab4c619e2e8f9db05eed594d61751fbd92e7 (diff) | |
download | redot-engine-274ed822836b435ab7d5f66b20526f9da18105d7.tar.gz |
Fix make sub-resource crash in AnimationTreeEditor
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/animation_tree_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/animation_tree_editor_plugin.cpp b/editor/plugins/animation_tree_editor_plugin.cpp index cd84be0c25..6c5606fbfd 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<String> 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 { |