@esotericsoftware/spine-pixi-v8 4.2.107 → 4.2.108

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.
@@ -12734,6 +12734,7 @@ var spine = (() => {
12734
12734
  } else if (spine.spineTexturesDirty) {
12735
12735
  const drawOrder = spine.skeleton.drawOrder;
12736
12736
  const gpuSpine = this.gpuSpineData[spine.uid];
12737
+ if (!gpuSpine) return false;
12737
12738
  for (let i = 0, n = drawOrder.length; i < n; i++) {
12738
12739
  const slot = drawOrder[i];
12739
12740
  const attachment = slot.getAttachment();
@@ -12805,16 +12806,15 @@ var spine = (() => {
12805
12806
  const containerAttachment = spine._slotsObject[slot.data.name];
12806
12807
  if (containerAttachment) {
12807
12808
  const container = containerAttachment.container;
12808
- if (!skipRender) {
12809
- container.includeInBuild = true;
12810
- container.collectRenderables(instructionSet, this.renderer, null);
12811
- }
12809
+ container.includeInBuild = true;
12810
+ container.collectRenderables(instructionSet, this.renderer, null);
12812
12811
  container.includeInBuild = false;
12813
12812
  }
12814
12813
  }
12815
12814
  }
12816
12815
  updateRenderable(spine) {
12817
12816
  const gpuSpine = this.gpuSpineData[spine.uid];
12817
+ if (!gpuSpine) return;
12818
12818
  spine._validateAndTransformAttachments();
12819
12819
  spine.spineAttachmentsDirty = false;
12820
12820
  spine.spineTexturesDirty = false;
@@ -13337,7 +13337,8 @@ var spine = (() => {
13337
13337
  updateSlotObject(slotAttachment) {
13338
13338
  const { slot, container } = slotAttachment;
13339
13339
  const followAttachmentValue = slotAttachment.followAttachmentTimeline ? Boolean(slot.attachment) : true;
13340
- container.visible = this.skeleton.drawOrder.includes(slot) && followAttachmentValue;
13340
+ const slotAlpha = this.skeleton.color.a * slot.color.a;
13341
+ container.visible = this.skeleton.drawOrder.includes(slot) && followAttachmentValue && this.alpha > 0 && slotAlpha > 0;
13341
13342
  if (container.visible) {
13342
13343
  let bone = slot.bone;
13343
13344
  const matrix = container.localTransform;
@@ -13348,7 +13349,7 @@ var spine = (() => {
13348
13349
  matrix.tx = bone.worldX;
13349
13350
  matrix.ty = bone.worldY;
13350
13351
  container.setFromMatrix(matrix);
13351
- container.alpha = this.skeleton.color.a * slot.color.a;
13352
+ container.alpha = slotAlpha;
13352
13353
  }
13353
13354
  }
13354
13355
  /** @internal */