@esotericsoftware/spine-webgl 4.2.76 → 4.2.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3708,18 +3708,15 @@ var spine = (() => {
3708
3708
  let finished = this.updateMixingFrom(from, delta);
3709
3709
  from.animationLast = from.nextAnimationLast;
3710
3710
  from.trackLast = from.nextTrackLast;
3711
- if (to.nextTrackLast != -1) {
3712
- const discard = to.mixTime == 0 && from.mixTime == 0;
3713
- if (to.mixTime >= to.mixDuration || discard) {
3714
- if (from.totalAlpha == 0 || to.mixDuration == 0 || discard) {
3715
- to.mixingFrom = from.mixingFrom;
3716
- if (from.mixingFrom != null)
3717
- from.mixingFrom.mixingTo = to;
3718
- to.interruptAlpha = from.interruptAlpha;
3719
- this.queue.end(from);
3720
- }
3721
- return finished;
3722
- }
3711
+ if (to.nextTrackLast != -1 && to.mixTime >= to.mixDuration) {
3712
+ if (from.totalAlpha == 0 || to.mixDuration == 0) {
3713
+ to.mixingFrom = from.mixingFrom;
3714
+ if (from.mixingFrom != null)
3715
+ from.mixingFrom.mixingTo = to;
3716
+ to.interruptAlpha = from.interruptAlpha;
3717
+ this.queue.end(from);
3718
+ }
3719
+ return finished;
3723
3720
  }
3724
3721
  from.trackTime += delta * from.timeScale;
3725
3722
  to.mixTime += delta;