@eva/plugin-renderer-spine 2.0.0-beta.5 → 2.0.0-beta.6

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.
@@ -3695,14 +3695,17 @@ var _AnimationState = class {
3695
3695
  let finished = this.updateMixingFrom(from, delta);
3696
3696
  from.animationLast = from.nextAnimationLast;
3697
3697
  from.trackLast = from.nextTrackLast;
3698
- if (to.mixTime > 0 && to.mixTime >= to.mixDuration) {
3699
- if (from.totalAlpha == 0 || to.mixDuration == 0) {
3700
- to.mixingFrom = from.mixingFrom;
3701
- if (from.mixingFrom) from.mixingFrom.mixingTo = to;
3702
- to.interruptAlpha = from.interruptAlpha;
3703
- this.queue.end(from);
3704
- }
3705
- return finished;
3698
+ if (to.nextTrackLast != -1) {
3699
+ const discard = to.mixTime == 0 && from.mixTime == 0;
3700
+ if (to.mixTime >= to.mixDuration || discard) {
3701
+ if (from.totalAlpha == 0 || to.mixDuration == 0 || discard) {
3702
+ to.mixingFrom = from.mixingFrom;
3703
+ if (from.mixingFrom != null) from.mixingFrom.mixingTo = to;
3704
+ to.interruptAlpha = from.interruptAlpha;
3705
+ this.queue.end(from);
3706
+ }
3707
+ return finished;
3708
+ }
3706
3709
  }
3707
3710
  from.trackTime += delta * from.timeScale;
3708
3711
  to.mixTime += delta;