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 Jul 31, 2023
1 parent cb7730c commit a0481e8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions editor/plugins/animation_tree_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,8 @@ bool AnimationTreeEditor::can_edit(const Ref<AnimationNode> &p_node) const {
}

Vector<String> AnimationTreeEditor::get_animation_list() {
if (!singleton->is_visible()) {
return Vector<String>();
}

AnimationTree *tree = singleton->tree;
if (!tree || !tree->has_node(tree->get_animation_player())) {
if (!tree || !singleton->is_visible() || !tree->has_node(tree->get_animation_player())) {
return Vector<String>();
}

Expand Down

0 comments on commit a0481e8

Please sign in to comment.