Skip to content

Commit

Permalink
Updated: Point/Origin transform conversion receives highest priority
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdvideo1234 committed Apr 1, 2024
1 parent 6e8adb2 commit 2ba281f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lua/autorun/trackassembly_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ local asmlib = trackasmlib; if(not asmlib) then -- Module present
------------ CONFIGURE ASMLIB ------------

asmlib.InitBase("track","assembly")
asmlib.SetOpVar("TOOL_VERSION","8.747")
asmlib.SetOpVar("TOOL_VERSION","8.748")
asmlib.SetIndexes("V" ,1,2,3)
asmlib.SetIndexes("A" ,1,2,3)
asmlib.SetIndexes("WV",1,2,3)
Expand Down
8 changes: 4 additions & 4 deletions lua/trackassembly/trackasmlib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2357,13 +2357,13 @@ function RegisterPOA(stData, ivID, sP, sO, sA)
if(not IsHere(TransferPOA(tOffs.A, "A"))) then
LogInstance("Angle nonassignable "..GetReport2(iID, stData.Slot)); return nil end
-------------------- Point --------------------
if(sP:sub(1,1) == sD) then -- Point is disabled then use origin
if(tOffs.O.Slot or sP:sub(1,1) == sE) then -- Origin transform trigger
stData.Tran = true; ReloadPOA(); tOffs.P.Slot = sP -- Store transform
LogInstance("Point transform "..GetReport3(iID, sP, stData.Slot))
elseif(sP:sub(1,1) == sD) then -- Point is disabled then use origin
ReloadPOA(tOffs.O[cvX], tOffs.O[cvY], tOffs.O[cvZ])
elseif(IsNull(sP) or IsBlank(sP)) then -- Empty value use origin
ReloadPOA(tOffs.O[cvX], tOffs.O[cvY], tOffs.O[cvZ])
elseif(tOffs.O.Slot or sP:sub(1,1) == sE) then -- Origin transform trigger
stData.Tran = true; ReloadPOA(); tOffs.P.Slot = sP -- Store transform
LogInstance("Point transform "..GetReport3(iID, sP, stData.Slot))
else -- When the point is empty use the origin otherwise decode the value
if(not DecodePOA(sP)) then -- Try to decode the point when present
LogInstance("Point mismatch "..GetReport2(iID, stData.Slot)) end
Expand Down

0 comments on commit 2ba281f

Please sign in to comment.