Never prefer empty animation when interrupting a mix.

This commit is contained in:
NathanSweet 2016-08-24 22:27:02 +02:00
parent a840f4f959
commit 81d7c1daeb

View File

@ -274,7 +274,8 @@ public class AnimationState {
queue.interrupt(current);
// If a mix is in progress, mix from the closest animation.
if (mixingFrom != null && (current.mixDuration == 0 || current.mixTime / current.mixDuration < 0.5f)) {
if (mixingFrom != null && mixingFrom.animation != emptyAnimation
&& (current.mixDuration == 0 || current.mixTime / current.mixDuration < 0.5f)) {
entry.mixingFrom = mixingFrom;
mixingFrom = current;
} else