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