Can only use #1024 fix on track 0.

This commit is contained in:
Nathan Sweet 2017-10-28 18:11:41 +02:00
parent eb44a67240
commit ecedff1ffa

View File

@ -249,11 +249,11 @@ public class AnimationState {
float mix;
if (to.mixDuration == 0) { // Single frame mix to undo mixingFrom changes.
mix = 1;
blend = MixBlend.setup;
if (blend == MixBlend.first) blend = MixBlend.setup; // Tracks >0 are transparent and can't reset to setup pose.
} else {
mix = to.mixTime / to.mixDuration;
if (mix > 1) mix = 1;
if (blend != MixBlend.first) blend = from.mixBlend;
if (blend != MixBlend.first) blend = from.mixBlend; // Track 0 ignores track mix blend.
}
Array<Event> events = mix < from.eventThreshold ? this.events : null;