[as3] Ported fix for #1119

This commit is contained in:
badlogic 2018-06-07 16:56:07 +02:00
parent 2726229071
commit 0f219a2eb0
4 changed files with 4 additions and 3 deletions

View File

@ -130,6 +130,9 @@ package spine.animation {
var finished : Boolean = 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.
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
// Require totalAlpha == 0 to ensure mixing is complete, unless mixDuration == 0 (the transition is a single frame).
@ -141,8 +144,6 @@ package spine.animation {
return finished;
}
from.animationLast = from.nextAnimationLast;
from.trackLast = from.nextTrackLast;
from.trackTime += delta * from.timeScale;
to.mixTime += delta * to.timeScale;
return false;