mirror of
https://github.com/dvdvideo1234/TrackAssemblyTool.git
synced 2025-03-04 03:13:32 -05:00
Fixed: Roll getting ignored when apply grid onto the snap angle
This commit is contained in:
parent
821632a678
commit
0bc29567ea
@ -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 ------------
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user