mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-01 21:29:07 +08:00
Fixed events on frame zero not firing.
This commit is contained in:
parent
194104f742
commit
8c3e024f3b
@ -301,7 +301,7 @@ public class AnimationState {
|
|||||||
TrackEntry next, previous;
|
TrackEntry next, previous;
|
||||||
Animation animation;
|
Animation animation;
|
||||||
boolean loop;
|
boolean loop;
|
||||||
float delay, time, lastTime = 0, endTime, timeScale = 1;
|
float delay, time, lastTime = -1, endTime, timeScale = 1;
|
||||||
float mixTime, mixDuration;
|
float mixTime, mixDuration;
|
||||||
AnimationStateListener listener;
|
AnimationStateListener listener;
|
||||||
float mix = 1;
|
float mix = 1;
|
||||||
@ -312,7 +312,7 @@ public class AnimationState {
|
|||||||
animation = null;
|
animation = null;
|
||||||
listener = null;
|
listener = null;
|
||||||
timeScale = 1;
|
timeScale = 1;
|
||||||
lastTime = 0;
|
lastTime = -1; // Trigger events on frame zero.
|
||||||
time = 0;
|
time = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user