mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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;
|
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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user