mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[lua] Port fix to AnimationState, see #1092
This commit is contained in:
parent
9651e0bc53
commit
e5c21658b8
@ -731,11 +731,11 @@ function AnimationState:addAnimation (trackIndex, animation, loop, delay)
|
||||
if last.loop then
|
||||
delay = delay + duration * (1 + math_floor(last.trackTime / duration))
|
||||
else
|
||||
delay = delay + duration
|
||||
delay = delay + math_max(duration, last.trackTime)
|
||||
end
|
||||
delay = delay - data:getMix(last.animation, animation)
|
||||
else
|
||||
delay = 0
|
||||
delay = last.trackTime
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user