@eva/plugin-renderer-spine 2.0.0-beta.3 → 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.
@@ -3691,14 +3691,17 @@ var _AnimationState = class {
3691
3691
  let finished = this.updateMixingFrom(from, delta);
3692
3692
  from.animationLast = from.nextAnimationLast;
3693
3693
  from.trackLast = from.nextTrackLast;
3694
- if (to.mixTime > 0 && to.mixTime >= to.mixDuration) {
3695
- if (from.totalAlpha == 0 || to.mixDuration == 0) {
3696
- to.mixingFrom = from.mixingFrom;
3697
- if (from.mixingFrom) from.mixingFrom.mixingTo = to;
3698
- to.interruptAlpha = from.interruptAlpha;
3699
- this.queue.end(from);
3700
- }
3701
- return finished;
3694
+ if (to.nextTrackLast != -1) {
3695
+ const discard = to.mixTime == 0 && from.mixTime == 0;
3696
+ if (to.mixTime >= to.mixDuration || discard) {
3697
+ if (from.totalAlpha == 0 || to.mixDuration == 0 || discard) {
3698
+ to.mixingFrom = from.mixingFrom;
3699
+ if (from.mixingFrom != null) from.mixingFrom.mixingTo = to;
3700
+ to.interruptAlpha = from.interruptAlpha;
3701
+ this.queue.end(from);
3702
+ }
3703
+ return finished;
3704
+ }
3702
3705
  }
3703
3706
  from.trackTime += delta * from.timeScale;
3704
3707
  to.mixTime += delta;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eva/plugin-renderer-spine",
3
- "version": "2.0.0-beta.3",
3
+ "version": "2.0.0-beta.6",
4
4
  "description": "@eva/plugin-renderer-spine",
5
5
  "main": "index.js",
6
6
  "module": "dist/plugin-renderer-spine.esm.js",
@@ -19,9 +19,9 @@
19
19
  "homepage": "https://eva.js.org",
20
20
  "dependencies": {
21
21
  "@eva/inspector-decorator": "^0.0.5",
22
- "@eva/plugin-renderer": "2.0.0-beta.3",
23
- "@eva/eva.js": "2.0.0-beta.3",
24
- "@eva/spine-base": "2.0.0-beta.3",
25
- "pixi.js": "^8.6.3"
22
+ "@eva/plugin-renderer": "2.0.0-beta.6",
23
+ "@eva/eva.js": "2.0.0-beta.6",
24
+ "@eva/spine-base": "2.0.0-beta.6",
25
+ "pixi.js": "^8.6.5"
26
26
  }
27
27
  }