mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 10:38:46 +08:00
[lua] Fixes bug in ColorTimeline
This commit is contained in:
parent
4a0ef931c0
commit
b3912899ab
@ -554,7 +554,7 @@ function Animation.ColorTimeline.new (frameCount)
|
||||
slot.color:set(r, g, b, a)
|
||||
else
|
||||
local color = slot.color
|
||||
if setupPose then color.setFrom(slot.data.color) end
|
||||
if setupPose then color:setFrom(slot.data.color) end
|
||||
color:add((r - color.r) * alpha, (g - color.g) * alpha, (b - color.b) * alpha, (a - color.a) * alpha)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user