mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 02:06:03 +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);
|
||||
if (current == null) continue;
|
||||
|
||||
float trackDelta = delta * current.timeScale;
|
||||
current.time += trackDelta;
|
||||
current.time += delta * current.timeScale;
|
||||
if (current.previous != null) {
|
||||
current.previous.time += delta * current.previous.timeScale;
|
||||
current.mixTime += trackDelta;
|
||||
float previousDelta = delta * current.previous.timeScale;
|
||||
current.previous.time += previousDelta;
|
||||
current.mixTime += previousDelta;
|
||||
}
|
||||
|
||||
TrackEntry next = current.next;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user