@esotericsoftware/spine-webgl 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/iife/spine-webgl.js
CHANGED
|
@@ -7912,6 +7912,19 @@ var spine = (() => {
|
|
|
7912
7912
|
updateCache[i].update(physics);
|
|
7913
7913
|
}
|
|
7914
7914
|
updateWorldTransformWith(physics, parent) {
|
|
7915
|
+
if (!parent)
|
|
7916
|
+
throw new Error("parent cannot be null.");
|
|
7917
|
+
let bones = this.bones;
|
|
7918
|
+
for (let i = 1, n = bones.length; i < n; i++) {
|
|
7919
|
+
let bone = bones[i];
|
|
7920
|
+
bone.ax = bone.x;
|
|
7921
|
+
bone.ay = bone.y;
|
|
7922
|
+
bone.arotation = bone.rotation;
|
|
7923
|
+
bone.ascaleX = bone.scaleX;
|
|
7924
|
+
bone.ascaleY = bone.scaleY;
|
|
7925
|
+
bone.ashearX = bone.shearX;
|
|
7926
|
+
bone.ashearY = bone.shearY;
|
|
7927
|
+
}
|
|
7915
7928
|
let rootBone = this.getRootBone();
|
|
7916
7929
|
if (!rootBone)
|
|
7917
7930
|
throw new Error("Root bone must not be null.");
|