mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[lua] Apply left over time additively to track time of delayed TrackEntry. See #1504.
This commit is contained in:
parent
60ab78d4c1
commit
ce86f669f5
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user