2
0
Fork 0

Fix the error when clicking AnimationTree in the editor

4.2
Magian 2023-08-02 22:45:09 +07:00
parent cb7730c5b2
commit 0b3c073c9e
1 changed files with 2 additions and 1 deletions

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