[lua] Fix not returning to setup pose when multiple mixing from entries end at same time. See #1027

This commit is contained in:
badlogic 2017-10-28 09:41:28 +02:00
parent 77c990c75e
commit bb23c5e25c

View File

@ -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