Browse Source

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

badlogic 7 years ago
parent
commit
bb23c5e25c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      spine-lua/AnimationState.lua

+ 1 - 0
spine-lua/AnimationState.lua

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