mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
Fixed sequence timelines being off by 1 frame in some cases.
closes EsotericSoftware/spine-editor#759
This commit is contained in:
parent
24b307eac2
commit
4b7f5b0a96
@ -2427,7 +2427,7 @@ public class Animation {
|
||||
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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user