[libgdx] Reset rotation direction for mixing out.

closes #779
This commit is contained in:
NathanSweet 2016-11-28 17:49:41 +01:00
parent 0d284dfc1a
commit fdd66af5e0

View File

@ -383,6 +383,8 @@ public class AnimationState {
current.mixingFrom = from;
current.mixTime = 0;
from.timelinesRotation.clear(); // Reset rotation for mixing out, in case entry was mixed in.
// If not completely mixed in, set mixAlpha so mixing out happens from current mix to zero.
if (from.mixingFrom != null) current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
}