@esotericsoftware/spine-pixi-v8 4.2.87 → 4.2.89

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.
@@ -162,12 +162,6 @@ var spine = (() => {
162
162
  };
163
163
  }
164
164
 
165
- // spine-pixi-v8/src/assets/atlasLoader.ts
166
- var import_pixi2 = __require("pixi.js");
167
-
168
- // spine-pixi-v8/src/SpineTexture.ts
169
- var import_pixi = __require("pixi.js");
170
-
171
165
  // spine-core/src/Utils.ts
172
166
  var IntSet = class {
173
167
  array = new Array();
@@ -11450,7 +11444,11 @@ var spine = (() => {
11450
11444
  }
11451
11445
  })();
11452
11446
 
11447
+ // spine-pixi-v8/src/assets/atlasLoader.ts
11448
+ var import_pixi2 = __require("pixi.js");
11449
+
11453
11450
  // spine-pixi-v8/src/SpineTexture.ts
11451
+ var import_pixi = __require("pixi.js");
11454
11452
  var SpineTexture = class _SpineTexture extends Texture {
11455
11453
  static textureMap = /* @__PURE__ */ new Map();
11456
11454
  static from(texture) {
@@ -11553,6 +11551,7 @@ var spine = (() => {
11553
11551
  }
11554
11552
  },
11555
11553
  loader: {
11554
+ id: loaderName,
11556
11555
  name: loaderName,
11557
11556
  extension: {
11558
11557
  type: import_pixi2.ExtensionType.LoadParser,
@@ -11570,7 +11569,7 @@ var spine = (() => {
11570
11569
  testParse(asset, options) {
11571
11570
  const isExtensionRight = (0, import_pixi2.checkExtension)(options.src, ".atlas");
11572
11571
  const isString = typeof asset === "string";
11573
- const isExplicitLoadParserSet = options.loadParser === loaderName;
11572
+ const isExplicitLoadParserSet = options.parser === loaderName || options.loadParser === loaderName;
11574
11573
  return Promise.resolve((isExtensionRight || isExplicitLoadParserSet) && isString);
11575
11574
  },
11576
11575
  unload(atlas) {
@@ -11628,6 +11627,7 @@ var spine = (() => {
11628
11627
  var spineLoaderExtension = {
11629
11628
  extension: import_pixi3.ExtensionType.Asset,
11630
11629
  loader: {
11630
+ id: loaderName2,
11631
11631
  name: loaderName2,
11632
11632
  extension: {
11633
11633
  type: import_pixi3.ExtensionType.LoadParser,
@@ -11645,7 +11645,7 @@ var spine = (() => {
11645
11645
  testParse(asset, options) {
11646
11646
  const isJsonSpineModel = (0, import_pixi3.checkExtension)(options.src, ".json") && isJson(asset);
11647
11647
  const isBinarySpineModel = (0, import_pixi3.checkExtension)(options.src, ".skel") && isBuffer(asset);
11648
- const isExplicitLoadParserSet = options.loadParser === loaderName2;
11648
+ const isExplicitLoadParserSet = options.parser === loaderName2 || options.loadParser === loaderName2;
11649
11649
  return Promise.resolve(isJsonSpineModel || isBinarySpineModel || isExplicitLoadParserSet);
11650
11650
  }
11651
11651
  }
@@ -12254,15 +12254,15 @@ var spine = (() => {
12254
12254
  }
12255
12255
  this._debug = value;
12256
12256
  }
12257
- _autoUpdate = true;
12257
+ _autoUpdate = false;
12258
12258
  get autoUpdate() {
12259
12259
  return this._autoUpdate;
12260
12260
  }
12261
12261
  /** When `true`, the Spine AnimationState and the Skeleton will be automatically updated using the {@link Ticker.shared} instance. */
12262
12262
  set autoUpdate(value) {
12263
- if (value) {
12263
+ if (value && !this._autoUpdate) {
12264
12264
  import_pixi8.Ticker.shared.add(this.internalUpdate, this);
12265
- } else {
12265
+ } else if (!value && this._autoUpdate) {
12266
12266
  import_pixi8.Ticker.shared.remove(this.internalUpdate, this);
12267
12267
  }
12268
12268
  this._autoUpdate = value;