mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +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 animationLast = current.animationLast
|
||||||
local animationTime = current:getAnimationTime()
|
local animationTime = current:getAnimationTime()
|
||||||
local timelines = current.animation.timelines
|
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
|
for i,timeline in ipairs(timelines) do
|
||||||
timeline:apply(skeleton, animationLast, animationTime, events, mix, blend, MixDirection._in)
|
timeline:apply(skeleton, animationLast, animationTime, events, mix, blend, MixDirection._in)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user