mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
fix typo(?) in colortimelines using color.r instead of slot.r when using alpha
This commit is contained in:
parent
9963293c88
commit
a92419193f
@ -372,7 +372,7 @@ function Animation.ColorTimeline.new ()
|
|||||||
local b = lastFrameB + (frames[frameIndex + FRAME_B] - lastFrameB) * percent
|
local b = lastFrameB + (frames[frameIndex + FRAME_B] - lastFrameB) * percent
|
||||||
local a = lastFrameA + (frames[frameIndex + FRAME_A] - lastFrameA) * percent
|
local a = lastFrameA + (frames[frameIndex + FRAME_A] - lastFrameA) * percent
|
||||||
if alpha < 1 then
|
if alpha < 1 then
|
||||||
slot:setColor(slot.r + (r - color.r) * alpha, slot.g + (g - color.g) * alpha, slot.b + (b - color.b) * alpha, slot.a + (a - color.a) * alpha)
|
slot:setColor(slot.r + (r - slot.r) * alpha, slot.g + (g - slot.g) * alpha, slot.b + (b - slot.b) * alpha, slot.a + (a - slot.a) * alpha)
|
||||||
else
|
else
|
||||||
slot:setColor(r, g, b, a)
|
slot:setColor(r, g, b, a)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user