mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-02 05:39:07 +08:00
Fixed animation state delay when not set right away (spine-js).
This commit is contained in:
parent
9f6fd34389
commit
ee4ad778af
@ -1110,10 +1110,9 @@ spine.AnimationState.prototype = {
|
|||||||
this.tracks[trackIndex] = entry;
|
this.tracks[trackIndex] = entry;
|
||||||
|
|
||||||
if (delay <= 0) {
|
if (delay <= 0) {
|
||||||
if (last) {
|
if (last)
|
||||||
if (last.time < last.endTime) delay += last.endTime - last.time;
|
delay += last.endTime - this.data.getMix(last.animation, animation);
|
||||||
delay -= this.data.getMix(last.animation, animation);
|
else
|
||||||
} else
|
|
||||||
delay = 0;
|
delay = 0;
|
||||||
}
|
}
|
||||||
entry.delay = delay;
|
entry.delay = delay;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user