mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-21 09:16:44 +08:00
Fixed lastTime not being set.
This commit is contained in:
parent
45c3487098
commit
bc259b390e
@ -204,6 +204,7 @@ public class AnimationState {
|
|||||||
entry.animation = animation;
|
entry.animation = animation;
|
||||||
entry.loop = loop;
|
entry.loop = loop;
|
||||||
entry.time = 0;
|
entry.time = 0;
|
||||||
|
entry.lastTime = 0;
|
||||||
entry.endTime = animation.getDuration();
|
entry.endTime = animation.getDuration();
|
||||||
setCurrent(trackIndex, entry);
|
setCurrent(trackIndex, entry);
|
||||||
return entry;
|
return entry;
|
||||||
@ -223,6 +224,7 @@ public class AnimationState {
|
|||||||
entry.animation = animation;
|
entry.animation = animation;
|
||||||
entry.loop = loop;
|
entry.loop = loop;
|
||||||
entry.time = 0;
|
entry.time = 0;
|
||||||
|
entry.lastTime = 0;
|
||||||
entry.endTime = animation.getDuration();
|
entry.endTime = animation.getDuration();
|
||||||
|
|
||||||
TrackEntry last = expandToIndex(trackIndex);
|
TrackEntry last = expandToIndex(trackIndex);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user