@esotericsoftware/spine-canvas 4.2.66 → 4.2.67

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.
@@ -7872,6 +7872,19 @@ var spine = (() => {
7872
7872
  updateCache[i].update(physics);
7873
7873
  }
7874
7874
  updateWorldTransformWith(physics, parent) {
7875
+ if (!parent)
7876
+ throw new Error("parent cannot be null.");
7877
+ let bones = this.bones;
7878
+ for (let i = 1, n = bones.length; i < n; i++) {
7879
+ let bone = bones[i];
7880
+ bone.ax = bone.x;
7881
+ bone.ay = bone.y;
7882
+ bone.arotation = bone.rotation;
7883
+ bone.ascaleX = bone.scaleX;
7884
+ bone.ascaleY = bone.scaleY;
7885
+ bone.ashearX = bone.shearX;
7886
+ bone.ashearY = bone.shearY;
7887
+ }
7875
7888
  let rootBone = this.getRootBone();
7876
7889
  if (!rootBone)
7877
7890
  throw new Error("Root bone must not be null.");