Merge pull request #53519 from timothyqiu/anim-tree-null

Fix make sub-resource crash in AnimationTreeEditor
This commit is contained in:
Rémi Verschelde 2021-10-07 14:31:56 +02:00 committed by GitHub
commit 8afd2171d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {