@esotericsoftware/spine-canvaskit 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.
@@ -3526,15 +3526,18 @@ var _AnimationState = class {
3526
3526
  let finished = this.updateMixingFrom(from, delta);
3527
3527
  from.animationLast = from.nextAnimationLast;
3528
3528
  from.trackLast = from.nextTrackLast;
3529
- if (to.mixTime > 0 && to.mixTime >= to.mixDuration) {
3530
- if (from.totalAlpha == 0 || to.mixDuration == 0) {
3531
- to.mixingFrom = from.mixingFrom;
3532
- if (from.mixingFrom)
3533
- from.mixingFrom.mixingTo = to;
3534
- to.interruptAlpha = from.interruptAlpha;
3535
- this.queue.end(from);
3536
- }
3537
- return finished;
3529
+ if (to.nextTrackLast != -1) {
3530
+ const discard = to.mixTime == 0 && from.mixTime == 0;
3531
+ if (to.mixTime >= to.mixDuration || discard) {
3532
+ if (from.totalAlpha == 0 || to.mixDuration == 0 || discard) {
3533
+ to.mixingFrom = from.mixingFrom;
3534
+ if (from.mixingFrom != null)
3535
+ from.mixingFrom.mixingTo = to;
3536
+ to.interruptAlpha = from.interruptAlpha;
3537
+ this.queue.end(from);
3538
+ }
3539
+ return finished;
3540
+ }
3538
3541
  }
3539
3542
  from.trackTime += delta * from.timeScale;
3540
3543
  to.mixTime += delta;