mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 10:16:01 +08:00
Use previous animation's time scale for the mixing duration.
This commit is contained in:
parent
2c5db07f07
commit
e0ee76f8c3
@ -59,11 +59,11 @@ public class AnimationState {
|
|||||||
TrackEntry current = tracks.get(i);
|
TrackEntry current = tracks.get(i);
|
||||||
if (current == null) continue;
|
if (current == null) continue;
|
||||||
|
|
||||||
float trackDelta = delta * current.timeScale;
|
current.time += delta * current.timeScale;
|
||||||
current.time += trackDelta;
|
|
||||||
if (current.previous != null) {
|
if (current.previous != null) {
|
||||||
current.previous.time += delta * current.previous.timeScale;
|
float previousDelta = delta * current.previous.timeScale;
|
||||||
current.mixTime += trackDelta;
|
current.previous.time += previousDelta;
|
||||||
|
current.mixTime += previousDelta;
|
||||||
}
|
}
|
||||||
|
|
||||||
TrackEntry next = current.next;
|
TrackEntry next = current.next;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user