mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-01 21:29:07 +08:00
[lua] Fixed EventQueue, cause Lua sequential arrays are terrible, fixed bug in ColorAttachment
This commit is contained in:
parent
7ae7372ae8
commit
c6abdd08e8
@ -521,7 +521,7 @@ function Animation.ColorTimeline.new (frameCount)
|
|||||||
b = b + (frames[frame + B] - b) * percent
|
b = b + (frames[frame + B] - b) * percent
|
||||||
a = a + (frames[frame + A] - a) * percent
|
a = a + (frames[frame + A] - a) * percent
|
||||||
end
|
end
|
||||||
local slot = skeleton.slots[slotIndex]
|
local slot = skeleton.slots[self.slotIndex]
|
||||||
if alpha == 1 then
|
if alpha == 1 then
|
||||||
slot.color:set(r, g, b, a)
|
slot.color:set(r, g, b, a)
|
||||||
else
|
else
|
||||||
|
|||||||
@ -147,7 +147,7 @@ function EventQueue:drain ()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function EventQueue:clear ()
|
function EventQueue:clear ()
|
||||||
self.objects[1] = nil -- dirty trick so we don't re-alloc, relies on using # in drain
|
self.objects = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user