Skip to content

Commit

Permalink
Fix make sub-resource crash in AnimationTreeEditor
Browse files Browse the repository at this point in the history
(cherry picked from commit 274ed82)
  • Loading branch information
timothyqiu authored and akien-mga committed Jul 3, 2022
1 parent 86f9460 commit 061646f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/animation_tree_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 061646f

Please sign in to comment.