mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-28 04:31:27 +08:00
[lua] Closes #751, didn't clear self->events in AnimationState:queueEvents
This commit is contained in:
parent
ec7754ec7f
commit
340cc6a85b
@ -391,9 +391,10 @@ function AnimationState:applyRotateTimeline (timeline, skeleton, time, alpha, se
|
|||||||
|
|
||||||
local rotateTimeline = timeline
|
local rotateTimeline = timeline
|
||||||
local frames = rotateTimeline.frames
|
local frames = rotateTimeline.frames
|
||||||
if time < frames[0] then return end -- Time is before first frame.
|
|
||||||
|
|
||||||
local bone = skeleton.bones[rotateTimeline.boneIndex]
|
local bone = skeleton.bones[rotateTimeline.boneIndex]
|
||||||
|
if time < frames[0] then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local r2 = 0
|
local r2 = 0
|
||||||
if time >= frames[zlen(frames) - Animation.RotateTimeline.ENTRIES] then -- Time is after last frame.
|
if time >= frames[zlen(frames) - Animation.RotateTimeline.ENTRIES] then -- Time is after last frame.
|
||||||
@ -491,7 +492,7 @@ function AnimationState:queueEvents (entry, animationTime)
|
|||||||
end
|
end
|
||||||
i = i + 1
|
i = i + 1
|
||||||
end
|
end
|
||||||
events = {}
|
self.events = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
function AnimationState:clearTracks ()
|
function AnimationState:clearTracks ()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user