@esotericsoftware/spine-pixi-v8 4.2.99 → 4.2.101

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,21 +12615,14 @@ var spine = (() => {
12615
12615
  container.visible = this.skeleton.drawOrder.includes(slot) && followAttachmentValue;
12616
12616
  if (container.visible) {
12617
12617
  let bone = slot.bone;
12618
- container.position.set(bone.worldX, bone.worldY);
12619
- container.angle = bone.getWorldRotationX();
12620
- let cumulativeScaleX = 1;
12621
- let cumulativeScaleY = 1;
12622
- while (bone) {
12623
- cumulativeScaleX *= bone.scaleX;
12624
- cumulativeScaleY *= bone.scaleY;
12625
- bone = bone.parent;
12626
- }
12627
- ;
12628
- if (cumulativeScaleX < 0) container.angle -= 180;
12629
- container.scale.set(
12630
- slot.bone.getWorldScaleX() * Math.sign(cumulativeScaleX),
12631
- slot.bone.getWorldScaleY() * Math.sign(cumulativeScaleY)
12632
- );
12618
+ const matrix = container.localTransform;
12619
+ matrix.a = bone.a;
12620
+ matrix.b = bone.c;
12621
+ matrix.c = -bone.b;
12622
+ matrix.d = -bone.d;
12623
+ matrix.tx = bone.worldX;
12624
+ matrix.ty = bone.worldY;
12625
+ container.setFromMatrix(matrix);
12633
12626
  container.alpha = this.skeleton.color.a * slot.color.a;
12634
12627
  }
12635
12628
  }