[libgdx] Don't fire event or complete events when mixDuration is 0.

closes #795
This commit is contained in:
NathanSweet 2016-12-06 13:34:17 +01:00
parent dfd0410acb
commit c512ee5d59

View File

@ -185,6 +185,7 @@ public class AnimationState {
}
}
queueEvents(current, animationTime);
events.clear();
current.nextAnimationLast = animationTime;
current.nextTrackLast = current.trackTime;
}
@ -230,7 +231,8 @@ public class AnimationState {
}
}
queueEvents(from, animationTime);
if (entry.mixDuration > 0) queueEvents(from, animationTime);
this.events.clear();
from.nextAnimationLast = animationTime;
from.nextTrackLast = from.trackTime;
@ -330,7 +332,6 @@ public class AnimationState {
if (event.time < animationStart) continue; // Discard events outside animation start/end.
queue.event(entry, events.get(i));
}
events.clear();
}
/** Removes all animations from all tracks, leaving skeletons in their previous pose.