@esotericsoftware/spine-core 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.
- package/dist/Skeleton.js +14 -1
- package/dist/esm/spine-core.min.mjs +2 -0
- package/dist/esm/spine-core.mjs +11775 -0
- package/dist/esm/spine-core.mjs.map +7 -0
- package/dist/iife/spine-core.js +13 -0
- package/dist/iife/spine-core.js.map +2 -2
- package/dist/iife/spine-core.min.js +2 -2
- package/package.json +1 -1
package/dist/iife/spine-core.js
CHANGED
|
@@ -7869,6 +7869,19 @@ var spine = (() => {
|
|
|
7869
7869
|
updateCache[i].update(physics);
|
|
7870
7870
|
}
|
|
7871
7871
|
updateWorldTransformWith(physics, parent) {
|
|
7872
|
+
if (!parent)
|
|
7873
|
+
throw new Error("parent cannot be null.");
|
|
7874
|
+
let bones = this.bones;
|
|
7875
|
+
for (let i = 1, n = bones.length; i < n; i++) {
|
|
7876
|
+
let bone = bones[i];
|
|
7877
|
+
bone.ax = bone.x;
|
|
7878
|
+
bone.ay = bone.y;
|
|
7879
|
+
bone.arotation = bone.rotation;
|
|
7880
|
+
bone.ascaleX = bone.scaleX;
|
|
7881
|
+
bone.ascaleY = bone.scaleY;
|
|
7882
|
+
bone.ashearX = bone.shearX;
|
|
7883
|
+
bone.ashearY = bone.shearY;
|
|
7884
|
+
}
|
|
7872
7885
|
let rootBone = this.getRootBone();
|
|
7873
7886
|
if (!rootBone)
|
|
7874
7887
|
throw new Error("Root bone must not be null.");
|