|
@@ -51,18 +51,19 @@ public class AnimationState {
|
|
}
|
|
}
|
|
|
|
|
|
public void update (float delta) {
|
|
public void update (float delta) {
|
|
|
|
+ delta *= timeScale;
|
|
for (int i = 0, n = tracks.size; i < n; i++) {
|
|
for (int i = 0, n = tracks.size; i < n; i++) {
|
|
TrackEntry current = tracks.get(i);
|
|
TrackEntry current = tracks.get(i);
|
|
if (current == null) continue;
|
|
if (current == null) continue;
|
|
|
|
|
|
- delta *= timeScale * current.timeScale;
|
|
|
|
- float time = current.time + delta;
|
|
|
|
|
|
+ float trackDelta = delta * current.timeScale;
|
|
|
|
+ float time = current.time + trackDelta;
|
|
float endTime = current.endTime;
|
|
float endTime = current.endTime;
|
|
|
|
|
|
current.time = time;
|
|
current.time = time;
|
|
if (current.previous != null) {
|
|
if (current.previous != null) {
|
|
- current.previous.time += delta;
|
|
|
|
- current.mixTime += delta;
|
|
|
|
|
|
+ current.previous.time += trackDelta;
|
|
|
|
+ current.mixTime += trackDelta;
|
|
}
|
|
}
|
|
|
|
|
|
// Check if completed the animation or a loop iteration.
|
|
// Check if completed the animation or a loop iteration.
|