diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-07 14:31:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 14:31:56 +0200 |
commit | 8afd2171d1f767c13a18b478b8fc8e6cb9df2157 (patch) | |
tree | abd537831dcb33dfc472394b3d798ecd001fc1f4 /editor/plugins/animation_tree_editor_plugin.cpp | |
parent | c8dea45f5536a9b03ddca9bcbebde98628e49cac (diff) | |
parent | 274ed822836b435ab7d5f66b20526f9da18105d7 (diff) |
Merge pull request #53519 from timothyqiu/anim-tree-null
Fix make sub-resource crash in AnimationTreeEditor
Diffstat (limited to 'editor/plugins/animation_tree_editor_plugin.cpp')
-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 { |