mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[lua] Fixes completion event firing for 0 duration animations. See #1112.
This commit is contained in:
parent
ca15f5e64f
commit
6c18d55d94
@ -585,7 +585,7 @@ function AnimationState:queueEvents (entry, animationTime)
|
||||
-- Queue complete if completed a loop iteration or the animation.
|
||||
local queueComplete = false
|
||||
if entry.loop then
|
||||
queueComplete = (trackLastWrapped > entry.trackTime % duration)
|
||||
queueComplete = duration == 0 or (trackLastWrapped > entry.trackTime % duration)
|
||||
else
|
||||
queueComplete = (animationTime >= animationEnd and entry.animationLast < animationEnd)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user