mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[c] Apply left over time additively to track time of delayed TrackEntry. See #1504.
This commit is contained in:
parent
0e4125686c
commit
c1cc7f4db8
@ -280,7 +280,7 @@ void spAnimationState_update (spAnimationState* self, float delta) {
|
||||
float nextTime = current->trackLast - next->delay;
|
||||
if (nextTime >= 0) {
|
||||
next->delay = 0;
|
||||
next->trackTime = current->timeScale == 0 ? 0 : (nextTime / current->timeScale + delta) * next->timeScale;
|
||||
next->trackTime += current->timeScale == 0 ? 0 : (nextTime / current->timeScale + delta) * next->timeScale;
|
||||
current->trackTime += currentDelta;
|
||||
_spAnimationState_setCurrent(self, i, next, 1);
|
||||
while (next->mixingFrom) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user