[lua] Fixes bug in ColorTimeline

This commit is contained in:
badlogic 2016-12-09 09:48:19 +01:00
parent 4a0ef931c0
commit b3912899ab

View File

@ -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