@esotericsoftware/spine-webgl 4.2.28 → 4.2.29
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
|
@@ -6234,8 +6234,8 @@ var spine = (() => {
|
|
|
6234
6234
|
let rotationIK = -bone.ashearX - bone.arotation, tx = 0, ty = 0;
|
|
6235
6235
|
switch (bone.data.transformMode) {
|
|
6236
6236
|
case 1 /* OnlyTranslation */:
|
|
6237
|
-
tx = targetX - bone.worldX;
|
|
6238
|
-
ty = targetY - bone.worldY;
|
|
6237
|
+
tx = (targetX - bone.worldX) * MathUtils.signum(bone.skeleton.scaleX);
|
|
6238
|
+
ty = (targetY - bone.worldY) * MathUtils.signum(bone.skeleton.scaleY);
|
|
6239
6239
|
break;
|
|
6240
6240
|
case 2 /* NoRotationOrReflection */:
|
|
6241
6241
|
let s = Math.abs(pa * pd - pb * pc) / Math.max(1e-4, pa * pa + pc * pc);
|