@esotericsoftware/spine-pixi-v8 4.2.90 → 4.2.92

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.
@@ -12052,6 +12052,7 @@ var spine = (() => {
12052
12052
  const slot = drawOrder[i];
12053
12053
  const attachment = slot.getAttachment();
12054
12054
  const blendMode = spineBlendModeMap[slot.data.blendMode];
12055
+ let skipRender = false;
12055
12056
  if (attachment instanceof RegionAttachment || attachment instanceof MeshAttachment) {
12056
12057
  const cacheData = spine._getCachedData(slot, attachment);
12057
12058
  const batchableSpineSlot = gpuSpine.slotBatches[cacheData.id] ||= new BatchableSpineSlot();
@@ -12061,15 +12062,18 @@ var spine = (() => {
12061
12062
  blendMode,
12062
12063
  roundPixels
12063
12064
  );
12064
- if (!cacheData.skipRender) {
12065
+ skipRender = cacheData.skipRender;
12066
+ if (!skipRender) {
12065
12067
  batcher.addToBatch(batchableSpineSlot, instructionSet);
12066
12068
  }
12067
12069
  }
12068
12070
  const containerAttachment = spine._slotsObject[slot.data.name];
12069
12071
  if (containerAttachment) {
12070
12072
  const container = containerAttachment.container;
12071
- container.includeInBuild = true;
12072
- container.collectRenderables(instructionSet, this.renderer, null);
12073
+ if (!skipRender) {
12074
+ container.includeInBuild = true;
12075
+ container.collectRenderables(instructionSet, this.renderer, null);
12076
+ }
12073
12077
  container.includeInBuild = false;
12074
12078
  }
12075
12079
  }
@@ -12491,12 +12495,14 @@ var spine = (() => {
12491
12495
  alpha
12492
12496
  );
12493
12497
  if (this.alpha === 0 || alpha === 0) {
12498
+ if (!cacheData.skipRender) this.spineAttachmentsDirty = true;
12494
12499
  cacheData.skipRender = true;
12495
12500
  } else {
12501
+ if (cacheData.skipRender) this.spineAttachmentsDirty = true;
12502
+ cacheData.skipRender = cacheData.clipped = false;
12496
12503
  if (slot.darkColor) {
12497
12504
  cacheData.darkColor.setFromColor(slot.darkColor);
12498
12505
  }
12499
- cacheData.skipRender = cacheData.clipped = false;
12500
12506
  const texture = attachment.region?.texture.texture || import_pixi8.Texture.EMPTY;
12501
12507
  if (cacheData.texture !== texture) {
12502
12508
  cacheData.texture = texture;