mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
[lua] Ported AnimationState change
This commit is contained in:
parent
14c1df8cfb
commit
c7ca217d52
@ -303,10 +303,10 @@ function AnimationState:apply (skeleton)
|
|||||||
-- Apply mixing from entries first.
|
-- Apply mixing from entries first.
|
||||||
local mix = current.alpha
|
local mix = current.alpha
|
||||||
if current.mixingFrom then
|
if current.mixingFrom then
|
||||||
mix = mix * self:applyMixingFrom(current, skeleton)
|
mix = mix * self:applyMixingFrom(current, skeleton)
|
||||||
elseif current.trackTime >= current.trackEnd then
|
elseif current.trackTime >= current.trackEnd and current.next == nil then
|
||||||
mix = 0
|
mix = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Apply current entry.
|
-- Apply current entry.
|
||||||
local animationLast = current.animationLast
|
local animationLast = current.animationLast
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user