@esotericsoftware/spine-canvas 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.
@@ -3527,6 +3527,11 @@ var spine = (() => {
3527
3527
  if (!(slotAttachment instanceof VertexAttachment) || slotAttachment.timelineAttachment != attachment)
3528
3528
  return;
3529
3529
  }
3530
+ if (direction == 1 /* mixOut */) {
3531
+ if (blend == 0 /* setup */)
3532
+ slot.sequenceIndex = -1;
3533
+ return;
3534
+ }
3530
3535
  let frames = this.frames;
3531
3536
  if (time < frames[0]) {
3532
3537
  if (blend == 0 /* setup */ || blend == 1 /* first */)
@@ -7867,6 +7872,19 @@ var spine = (() => {
7867
7872
  updateCache[i].update(physics);
7868
7873
  }
7869
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
+ }
7870
7888
  let rootBone = this.getRootBone();
7871
7889
  if (!rootBone)
7872
7890
  throw new Error("Root bone must not be null.");