[lua] Ported fix for #1224, disable inherit scale.

This commit is contained in:
badlogic 2018-12-10 15:21:51 +01:00
parent fe9f689beb
commit c09b0673ac

View File

@ -172,6 +172,9 @@ function Bone:updateWorldTransformWith (x, y, rotation, scaleX, scaleY, shearX,
za = za * s
zc = zc * s
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 zb = math_cos(r) * s
local zd = math_sin(r) * s