mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 02:28:44 +08:00
Add small value to sequence timeline for float inaccuracy.
This commit is contained in:
parent
f3b7d2acb2
commit
39afd0e7ea
@ -2486,7 +2486,7 @@ public class Animation {
|
||||
int index = modeAndIndex >> 4, count = attachment.getSequence().getRegions().length;
|
||||
SequenceMode mode = SequenceMode.values[modeAndIndex & 0xf];
|
||||
if (mode != SequenceMode.stop) {
|
||||
index += (time - before) / delay;
|
||||
index += (time - before) / delay + 0.00001f;
|
||||
switch (mode) {
|
||||
case once:
|
||||
index = Math.min(count - 1, index);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user