Skip to content

Commit

Permalink
[libgdx] Changed SequenceTimeline to match AttachmentTimeline behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Nov 15, 2024
1 parent 02deca1 commit 9d49999
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2622,6 +2622,11 @@ public void apply (Skeleton skeleton, float lastTime, float time, @Null Array<Ev
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);
Expand Down

1 comment on commit 9d49999

@NathanSweet
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.