@esotericsoftware/spine-core 4.2.38 → 4.2.39

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.
@@ -420,7 +420,7 @@ export class AnimationState {
420
420
  complete = true;
421
421
  else {
422
422
  const cycles = Math.floor(entry.trackTime / duration);
423
- complete = cycles > 0 && cycles > Math.floor(entry.trackTime / duration);
423
+ complete = cycles > 0 && cycles > Math.floor(entry.trackLast / duration);
424
424
  }
425
425
  }
426
426
  else
@@ -3926,7 +3926,7 @@ var spine = (() => {
3926
3926
  complete = true;
3927
3927
  else {
3928
3928
  const cycles = Math.floor(entry.trackTime / duration);
3929
- complete = cycles > 0 && cycles > Math.floor(entry.trackTime / duration);
3929
+ complete = cycles > 0 && cycles > Math.floor(entry.trackLast / duration);
3930
3930
  }
3931
3931
  } else
3932
3932
  complete = animationTime >= animationEnd && entry.animationLast < animationEnd;