mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[lua] Fix not returning to setup pose when multiple mixing from entries end at same time. See #1027
This commit is contained in:
parent
77c990c75e
commit
bb23c5e25c
@ -428,6 +428,7 @@ function AnimationState:applyMixingFrom (to, skeleton, currentPose)
|
||||
local mix = 0
|
||||
if to.mixDuration == 0 then -- Single frame mix to undo mixingFrom changes.
|
||||
mix = 1
|
||||
currentPose = MixPose.setup
|
||||
else
|
||||
mix = to.mixTime / to.mixDuration
|
||||
if mix > 1 then mix = 1 end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user