mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +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;
|
||||
Animation animation;
|
||||
boolean loop;
|
||||
float delay, time, lastTime = 0, endTime, timeScale = 1;
|
||||
float delay, time, lastTime = -1, endTime, timeScale = 1;
|
||||
float mixTime, mixDuration;
|
||||
AnimationStateListener listener;
|
||||
float mix = 1;
|
||||
@ -312,7 +312,7 @@ public class AnimationState {
|
||||
animation = null;
|
||||
listener = null;
|
||||
timeScale = 1;
|
||||
lastTime = 0;
|
||||
lastTime = -1; // Trigger events on frame zero.
|
||||
time = 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user