Skip to content

Commit

Permalink
Fix the error when clicking AnimationTree in the editor
Browse files Browse the repository at this point in the history
  • Loading branch information
magian1127 committed Aug 2, 2023
1 parent cb7730c commit 0b3c073
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/plugins/animation_tree_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ bool AnimationTreeEditor::can_edit(const Ref<AnimationNode> &p_node) const {
}

Vector<String> 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<String>();
}

Expand Down

0 comments on commit 0b3c073

Please sign in to comment.