mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
[lua] Port of additional fix for #1668.
This commit is contained in:
parent
f3a9c0a535
commit
b39d1a881f
@ -144,6 +144,8 @@ function Bone:updateWorldTransformWith (x, y, rotation, scaleX, scaleY, shearX,
|
|||||||
local prx = 0
|
local prx = 0
|
||||||
if s > 0.0001 then
|
if s > 0.0001 then
|
||||||
s = math_abs(pa * pd - pb * pc) / s
|
s = math_abs(pa * pd - pb * pc) / s
|
||||||
|
pa = pa / self.skeleton.scaleX
|
||||||
|
pc = pc / self.skeleton.scaleY
|
||||||
pb = pc * s
|
pb = pc * s
|
||||||
pd = pa * s
|
pd = pa * s
|
||||||
prx = math_deg(math_atan2(pc, pa));
|
prx = math_deg(math_atan2(pc, pa));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user