From b17a20286f78b8284926fe7f57bfcfdce6c98846 Mon Sep 17 00:00:00 2001 From: badlogic Date: Thu, 26 Sep 2019 11:38:35 +0200 Subject: [PATCH] [csharp] Apply left over time additively to track time of delayed TrackEntry. See #1504. --- spine-csharp/src/AnimationState.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-csharp/src/AnimationState.cs b/spine-csharp/src/AnimationState.cs index 5e74a6024..b0359ecf8 100644 --- a/spine-csharp/src/AnimationState.cs +++ b/spine-csharp/src/AnimationState.cs @@ -136,7 +136,7 @@ namespace Spine { 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; SetCurrent(i, next, true); while (next.mixingFrom != null) {