mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[lua] Ported fix for #1119
This commit is contained in:
parent
0f219a2eb0
commit
0f7b813c38
@ -345,6 +345,9 @@ function AnimationState:updateMixingFrom (to, delta)
|
|||||||
|
|
||||||
local finished = self:updateMixingFrom(from, delta)
|
local finished = self:updateMixingFrom(from, delta)
|
||||||
|
|
||||||
|
from.animationLast = from.nextAnimationLast
|
||||||
|
from.trackLast = from.nextTrackLast
|
||||||
|
|
||||||
-- Require mixTime > 0 to ensure the mixing from entry was applied at least once.
|
-- Require mixTime > 0 to ensure the mixing from entry was applied at least once.
|
||||||
if (to.mixTime > 0 and (to.mixTime >= to.mixDuration or to.timeScale == 0)) then
|
if (to.mixTime > 0 and (to.mixTime >= to.mixDuration or to.timeScale == 0)) then
|
||||||
-- Require totalAlpha == 0 to ensure mixing is complete, unless mixDuration == 0 (the transition is a single frame).
|
-- Require totalAlpha == 0 to ensure mixing is complete, unless mixDuration == 0 (the transition is a single frame).
|
||||||
@ -355,9 +358,7 @@ function AnimationState:updateMixingFrom (to, delta)
|
|||||||
end
|
end
|
||||||
return finished
|
return finished
|
||||||
end
|
end
|
||||||
|
|
||||||
from.animationLast = from.nextAnimationLast
|
|
||||||
from.trackLast = from.nextTrackLast
|
|
||||||
from.trackTime = from.trackTime + delta * from.timeScale
|
from.trackTime = from.trackTime + delta * from.timeScale
|
||||||
to.mixTime = to.mixTime + delta * to.timeScale
|
to.mixTime = to.mixTime + delta * to.timeScale
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user