[as3] 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:40:17 +02:00
parent 5b410bf2ba
commit 77c990c75e
4 changed files with 3 additions and 2 deletions

View File

@ -207,9 +207,10 @@ package spine.animation {
if (from.mixingFrom != null) applyMixingFrom(from, skeleton, currentPose);
var mix : Number = 0;
if (to.mixDuration == 0) // Single frame mix to undo mixingFrom changes.
if (to.mixDuration == 0) { // Single frame mix to undo mixingFrom changes.
mix = 1;
else {
currentPose = MixPose.setup;
} else {
mix = to.mixTime / to.mixDuration;
if (mix > 1) mix = 1;
}