diff --git a/editor/plugins/animation_tree_editor_plugin.cpp b/editor/plugins/animation_tree_editor_plugin.cpp index 9fa1e63dcb19..7b5f8aa7f771 100644 --- a/editor/plugins/animation_tree_editor_plugin.cpp +++ b/editor/plugins/animation_tree_editor_plugin.cpp @@ -241,7 +241,8 @@ bool AnimationTreeEditor::can_edit(const Ref &p_node) const { } Vector AnimationTreeEditor::get_animation_list() { - if (!singleton->is_visible()) { + if (!singleton->tree || !singleton->is_visible()) { + // When tree is empty, singleton not in the main thread. return Vector(); }