Skip to content

Commit

Permalink
Merge pull request #79588 from magian1127/4.0Fix78052
Browse files Browse the repository at this point in the history
Fix the error when clicking AnimationTree in the editor
  • Loading branch information
YuriSizov committed Aug 2, 2023
2 parents 0a9006a + 0b3c073 commit 1886dee
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 1886dee

Please sign in to comment.