[lua] Port of additive blending fix, see #1322.

This commit is contained in:
badlogic 2019-04-04 14:54:39 +02:00
parent 3093f3a79e
commit 97ff156362

View File

@ -347,7 +347,7 @@ function AnimationState:apply (skeleton)
local animationLast = current.animationLast
local animationTime = current:getAnimationTime()
local timelines = current.animation.timelines
if i == 0 and (mix == 1 or blend == MixBlend.add) then
if (i == 0 and mix == 1) or blend == MixBlend.add then
for i,timeline in ipairs(timelines) do
timeline:apply(skeleton, animationLast, animationTime, events, mix, blend, MixDirection._in)
end