[libgdx] Changed SequenceTimeline to match AttachmentTimeline behavior.

This commit is contained in:
Nathan Sweet 2024-11-14 20:11:36 -10:00
parent 02deca1cba
commit 9d49999e2b

View File

@ -2622,6 +2622,11 @@ public class Animation {
Sequence sequence = ((HasTextureRegion)slotAttachment).getSequence();
if (sequence == null) return;
if (direction == out) {
if (blend == setup) slot.setSequenceIndex(-1);
return;
}
float[] frames = this.frames;
if (time < frames[0]) {
if (blend == setup || blend == first) slot.setSequenceIndex(-1);