mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-07 03:06:55 +08:00
[as3] Fix for #1064, delay was calculated incorrectly for non-loop previous track entries.
This commit is contained in:
parent
dd61552c82
commit
f56937c042
Binary file not shown.
@ -468,9 +468,12 @@ package spine.animation {
|
|||||||
last.next = entry;
|
last.next = entry;
|
||||||
if (delay <= 0) {
|
if (delay <= 0) {
|
||||||
var duration : Number = last.animationEnd - last.animationStart;
|
var duration : Number = last.animationEnd - last.animationStart;
|
||||||
if (duration != 0)
|
if (duration != 0) {
|
||||||
delay += duration * (1 + (int)(last.trackTime / duration)) - data.getMix(last.animation, animation);
|
if (last.loop)
|
||||||
else
|
delay += duration * (1 + (int)(last.trackTime / duration));
|
||||||
|
else
|
||||||
|
delay += duration;
|
||||||
|
} else
|
||||||
delay = 0;
|
delay = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user