@esotericsoftware/spine-core 4.2.67 → 4.2.69

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