[godot] Don't apply "[stop]" animation.

This commit is contained in:
badlogic 2022-04-29 10:24:28 +02:00
parent 3785147ba3
commit bcf20d764b

View File

@ -294,8 +294,8 @@ void SpineAnimationTrack::update_animation_state(const Variant &variant_sprite)
animation_state->clearTrack(track_index);
if (found_track_index == -1) return;
// If no animation is set, we are done.
if (EMPTY(animation_name)) return;
// If no animation is set or it's set to "[stop]", we are done.
if (EMPTY(animation_name) || animation_name == "[stop]") return;
// If there's no keys on the timeline for this track, we are done.
if (edited_animation->track_get_key_count(found_track_index) == 0) return;