@esotericsoftware/spine-webgl 4.2.65 → 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
|
@@ -3567,6 +3567,11 @@ var spine = (() => {
|
|
|
3567
3567
|
if (!(slotAttachment instanceof VertexAttachment) || slotAttachment.timelineAttachment != attachment)
|
|
3568
3568
|
return;
|
|
3569
3569
|
}
|
|
3570
|
+
if (direction == 1 /* mixOut */) {
|
|
3571
|
+
if (blend == 0 /* setup */)
|
|
3572
|
+
slot.sequenceIndex = -1;
|
|
3573
|
+
return;
|
|
3574
|
+
}
|
|
3570
3575
|
let frames = this.frames;
|
|
3571
3576
|
if (time < frames[0]) {
|
|
3572
3577
|
if (blend == 0 /* setup */ || blend == 1 /* first */)
|
|
@@ -7907,6 +7912,19 @@ var spine = (() => {
|
|
|
7907
7912
|
updateCache[i].update(physics);
|
|
7908
7913
|
}
|
|
7909
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
|
+
}
|
|
7910
7928
|
let rootBone = this.getRootBone();
|
|
7911
7929
|
if (!rootBone)
|
|
7912
7930
|
throw new Error("Root bone must not be null.");
|