mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 01:06:00 +08:00
[lua] Port of additive blending fix, see #1322.
This commit is contained in:
parent
3093f3a79e
commit
97ff156362
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user