mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
[as3] Port of additional fix for #1668.
This commit is contained in:
parent
9e7ff6ad2c
commit
b53bccf627
Binary file not shown.
@ -143,6 +143,8 @@ package spine {
|
|||||||
var prx : Number = 0;
|
var prx : Number = 0;
|
||||||
if (s > 0.0001) {
|
if (s > 0.0001) {
|
||||||
s = Math.abs(pa * pd - pb * pc) / s;
|
s = Math.abs(pa * pd - pb * pc) / s;
|
||||||
|
pa /= this.skeleton.scaleX;
|
||||||
|
pc /= this.skeleton.scaleY;
|
||||||
pb = pc * s;
|
pb = pc * s;
|
||||||
pd = pa * s;
|
pd = pa * s;
|
||||||
prx = Math.atan2(pc, pa) * MathUtils.radDeg;
|
prx = Math.atan2(pc, pa) * MathUtils.radDeg;
|
||||||
@ -161,7 +163,7 @@ package spine {
|
|||||||
this.b = pa * lb - pb * ld;
|
this.b = pa * lb - pb * ld;
|
||||||
this.c = pc * la + pd * lc;
|
this.c = pc * la + pd * lc;
|
||||||
this.d = pc * lb + pd * ld;
|
this.d = pc * lb + pd * ld;
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
case TransformMode.noScale:
|
case TransformMode.noScale:
|
||||||
case TransformMode.noScaleOrReflection: {
|
case TransformMode.noScaleOrReflection: {
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user