1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix make sub-resource crash in AnimationTreeEditor

This commit is contained in:
Haoyu Qiu
2021-10-07 19:45:03 +08:00
parent 410cab4c61
commit 274ed82283

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 {