Fixed: Roll getting ignored when apply grid onto the snap angle

This commit is contained in:
Deyan Dobromirov 2025-02-03 15:15:42 +02:00
parent 821632a678
commit 0bc29567ea
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ local asmlib = trackasmlib; if(not asmlib) then -- Module present
------------ CONFIGURE ASMLIB ------------
asmlib.InitBase("track","assembly")
asmlib.SetOpVar("TOOL_VERSION","9.776")
asmlib.SetOpVar("TOOL_VERSION","9.777")
------------ CONFIGURE GLOBAL INIT OPVARS ------------

View File

@ -868,7 +868,7 @@ function GridAngle(aBase, nvDec)
if(not aBase) then LogInstance("Base invalid"); return nil end
local D = tonumber(nvDec or 0); if(D == 0) then return aBase end
local P, Y, R = aBase:Unpack()
if(P == 0 and P == 0 and D > 0) then Y = GetGrid(Y, D) end
if(P == 0 and R == 0 and D > 0) then Y = GetGrid(Y, D) end
aBase:SetUnpacked(P, Y, R) return aBase
end