|
@@ -2486,7 +2486,7 @@ public class Animation {
|
|
int index = modeAndIndex >> 4, count = attachment.getSequence().getRegions().length;
|
|
int index = modeAndIndex >> 4, count = attachment.getSequence().getRegions().length;
|
|
SequenceMode mode = SequenceMode.values[modeAndIndex & 0xf];
|
|
SequenceMode mode = SequenceMode.values[modeAndIndex & 0xf];
|
|
if (mode != SequenceMode.stop) {
|
|
if (mode != SequenceMode.stop) {
|
|
- index += (time - before) / delay;
|
|
|
|
|
|
+ index += (time - before) / delay + 0.00001f;
|
|
switch (mode) {
|
|
switch (mode) {
|
|
case once:
|
|
case once:
|
|
index = Math.min(count - 1, index);
|
|
index = Math.min(count - 1, index);
|