Skip to content

Commit

Permalink
[as3] Port of additional fix for EsotericSoftware#1668.
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed May 20, 2020
1 parent 9e7ff6a commit b53bccf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Binary file modified spine-as3/spine-as3/lib/spine-as3.swc
Binary file not shown.
4 changes: 3 additions & 1 deletion spine-as3/spine-as3/src/spine/Bone.as
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ package spine {
var prx : Number = 0;
if (s > 0.0001) {
s = Math.abs(pa * pd - pb * pc) / s;
pa /= this.skeleton.scaleX;
pc /= this.skeleton.scaleY;
pb = pc * s;
pd = pa * s;
prx = Math.atan2(pc, pa) * MathUtils.radDeg;
Expand All @@ -161,7 +163,7 @@ package spine {
this.b = pa * lb - pb * ld;
this.c = pc * la + pd * lc;
this.d = pc * lb + pd * ld;
return;
break;
}
case TransformMode.noScale:
case TransformMode.noScaleOrReflection: {
Expand Down
Binary file modified spine-starling/spine-starling/lib/spine-starling.swc
Binary file not shown.

0 comments on commit b53bccf

Please sign in to comment.