mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[lua] Ported fix for #1224, disable inherit scale.
This commit is contained in:
parent
fe9f689beb
commit
c09b0673ac
@ -172,6 +172,9 @@ function Bone:updateWorldTransformWith (x, y, rotation, scaleX, scaleY, shearX,
|
|||||||
za = za * s
|
za = za * s
|
||||||
zc = zc * s
|
zc = zc * s
|
||||||
s = math_sqrt(za * za + zc * zc)
|
s = math_sqrt(za * za + zc * zc)
|
||||||
|
if transformMode == TransformMode.noScale and pa * pd - pb * pc < 0 ~= (sx < 0) ~= (sy < 0) then
|
||||||
|
s = -s
|
||||||
|
end
|
||||||
local r = math_pi / 2 + math_atan2(zc, za)
|
local r = math_pi / 2 + math_atan2(zc, za)
|
||||||
local zb = math_cos(r) * s
|
local zb = math_cos(r) * s
|
||||||
local zd = math_sin(r) * s
|
local zd = math_sin(r) * s
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user