[libgdx] During mix, use timeScale from the most current animation.

This commit is contained in:
NathanSweet 2016-11-22 17:49:49 +01:00
parent 65982c7eca
commit 40cbe8620d

View File

@ -142,9 +142,8 @@ public class AnimationState {
from.animationLast = from.nextAnimationLast;
from.trackLast = from.nextTrackLast;
float mixingFromDelta = delta * from.timeScale;
from.trackTime += mixingFromDelta;
entry.mixTime += mixingFromDelta;
from.trackTime += delta * from.timeScale;
entry.mixTime += delta * entry.timeScale;
updateMixingFrom(from, delta, canEnd && from.alpha == 1);
}