@esotericsoftware/spine-pixi-v8 4.2.107 → 4.2.109

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.
@@ -12615,6 +12615,7 @@ var SpinePipe = class {
12615
12615
  } else if (spine.spineTexturesDirty) {
12616
12616
  const drawOrder = spine.skeleton.drawOrder;
12617
12617
  const gpuSpine = this.gpuSpineData[spine.uid];
12618
+ if (!gpuSpine) return false;
12618
12619
  for (let i = 0, n = drawOrder.length; i < n; i++) {
12619
12620
  const slot = drawOrder[i];
12620
12621
  const attachment = slot.getAttachment();
@@ -12686,16 +12687,15 @@ var SpinePipe = class {
12686
12687
  const containerAttachment = spine._slotsObject[slot.data.name];
12687
12688
  if (containerAttachment) {
12688
12689
  const container = containerAttachment.container;
12689
- if (!skipRender) {
12690
- container.includeInBuild = true;
12691
- container.collectRenderables(instructionSet, this.renderer, null);
12692
- }
12690
+ container.includeInBuild = true;
12691
+ container.collectRenderables(instructionSet, this.renderer, null);
12693
12692
  container.includeInBuild = false;
12694
12693
  }
12695
12694
  }
12696
12695
  }
12697
12696
  updateRenderable(spine) {
12698
12697
  const gpuSpine = this.gpuSpineData[spine.uid];
12698
+ if (!gpuSpine) return;
12699
12699
  spine._validateAndTransformAttachments();
12700
12700
  spine.spineAttachmentsDirty = false;
12701
12701
  spine.spineTexturesDirty = false;
@@ -13227,7 +13227,8 @@ var Spine = class _Spine extends ViewContainer {
13227
13227
  updateSlotObject(slotAttachment) {
13228
13228
  const { slot, container } = slotAttachment;
13229
13229
  const followAttachmentValue = slotAttachment.followAttachmentTimeline ? Boolean(slot.attachment) : true;
13230
- container.visible = this.skeleton.drawOrder.includes(slot) && followAttachmentValue;
13230
+ const slotAlpha = this.skeleton.color.a * slot.color.a;
13231
+ container.visible = this.skeleton.drawOrder.includes(slot) && followAttachmentValue && this.alpha > 0 && slotAlpha > 0;
13231
13232
  if (container.visible) {
13232
13233
  let bone = slot.bone;
13233
13234
  const matrix = container.localTransform;
@@ -13238,7 +13239,7 @@ var Spine = class _Spine extends ViewContainer {
13238
13239
  matrix.tx = bone.worldX;
13239
13240
  matrix.ty = bone.worldY;
13240
13241
  container.setFromMatrix(matrix);
13241
- container.alpha = this.skeleton.color.a * slot.color.a;
13242
+ container.alpha = slotAlpha;
13242
13243
  }
13243
13244
  }
13244
13245
  /** @internal */