mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +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.
|
||||
local mix = current.alpha
|
||||
if current.mixingFrom then
|
||||
mix = mix * self:applyMixingFrom(current, skeleton)
|
||||
elseif current.trackTime >= current.trackEnd then
|
||||
mix = 0
|
||||
end
|
||||
mix = mix * self:applyMixingFrom(current, skeleton)
|
||||
elseif current.trackTime >= current.trackEnd and current.next == nil then
|
||||
mix = 0
|
||||
end
|
||||
|
||||
-- Apply current entry.
|
||||
local animationLast = current.animationLast
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user