From c1cc7f4db8a6d52997f29de58ad03db75c0119b4 Mon Sep 17 00:00:00 2001 From: badlogic Date: Thu, 26 Sep 2019 11:34:14 +0200 Subject: [PATCH] [c] Apply left over time additively to track time of delayed TrackEntry. See #1504. --- spine-c/spine-c/src/spine/AnimationState.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-c/spine-c/src/spine/AnimationState.c b/spine-c/spine-c/src/spine/AnimationState.c index 788da02f2..dfe634ed5 100644 --- a/spine-c/spine-c/src/spine/AnimationState.c +++ b/spine-c/spine-c/src/spine/AnimationState.c @@ -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) {