[lua] Apply left over time additively to track time of delayed TrackEntry. See #1504.

This commit is contained in:
badlogic 2019-09-26 11:34:41 +02:00
parent 60ab78d4c1
commit ce86f669f5

View File

@ -252,9 +252,9 @@ function AnimationState:update (delta)
if nextTime >= 0 then
_next.delay = 0
if current.timeScale == 0 then
_next.trackTime = 0
_next.trackTime = _next.trackTime + 0
else
_next.trackTime = (nextTime / current.timeScale + delta) * _next.timeScale
_next.trackTime = _next.trackTime + (nextTime / current.timeScale + delta) * _next.timeScale
end
current.trackTime = current.trackTime + currentDelta
self:setCurrent(i, _next, true)