@esotericsoftware/spine-canvas 4.2.67 → 4.2.68

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.
@@ -3668,15 +3668,18 @@ var spine = (() => {
3668
3668
  let finished = this.updateMixingFrom(from, delta);
3669
3669
  from.animationLast = from.nextAnimationLast;
3670
3670
  from.trackLast = from.nextTrackLast;
3671
- if (to.mixTime > 0 && to.mixTime >= to.mixDuration) {
3672
- if (from.totalAlpha == 0 || to.mixDuration == 0) {
3673
- to.mixingFrom = from.mixingFrom;
3674
- if (from.mixingFrom)
3675
- from.mixingFrom.mixingTo = to;
3676
- to.interruptAlpha = from.interruptAlpha;
3677
- this.queue.end(from);
3678
- }
3679
- return finished;
3671
+ if (to.nextTrackLast != -1) {
3672
+ const discard = to.mixTime == 0 && from.mixTime == 0;
3673
+ if (to.mixTime >= to.mixDuration || discard) {
3674
+ if (from.totalAlpha == 0 || to.mixDuration == 0 || discard) {
3675
+ to.mixingFrom = from.mixingFrom;
3676
+ if (from.mixingFrom != null)
3677
+ from.mixingFrom.mixingTo = to;
3678
+ to.interruptAlpha = from.interruptAlpha;
3679
+ this.queue.end(from);
3680
+ }
3681
+ return finished;
3682
+ }
3680
3683
  }
3681
3684
  from.trackTime += delta * from.timeScale;
3682
3685
  to.mixTime += delta;