Skip to content

Commit

Permalink
Fixed sequence timelines being off by 1 frame in some cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Sweet committed Nov 9, 2023
1 parent 24b307e commit 4b7f5b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2427,7 +2427,7 @@ public void apply (Skeleton skeleton, float lastTime, float time, @Null Array<Ev
int index = modeAndIndex >> 4, count = sequence.getRegions().length;
SequenceMode mode = SequenceMode.values[modeAndIndex & 0xf];
if (mode != SequenceMode.hold) {
index += (time - before) / delay + 0.00001f;
index += (time - before) / delay + 0.0001f;
switch (mode) {
case once:
index = Math.min(count - 1, index);
Expand Down

0 comments on commit 4b7f5b0

Please sign in to comment.