mirror of
https://github.com/dvdvideo1234/TrackAssemblyTool.git
synced 2025-03-04 03:13:32 -05:00
Updated: Point/Origin transform conversion receives highest priority
This commit is contained in:
parent
6e8adb2919
commit
2ba281f855
@ -84,7 +84,7 @@ local asmlib = trackasmlib; if(not asmlib) then -- Module present
|
|||||||
------------ CONFIGURE ASMLIB ------------
|
------------ CONFIGURE ASMLIB ------------
|
||||||
|
|
||||||
asmlib.InitBase("track","assembly")
|
asmlib.InitBase("track","assembly")
|
||||||
asmlib.SetOpVar("TOOL_VERSION","8.747")
|
asmlib.SetOpVar("TOOL_VERSION","8.748")
|
||||||
asmlib.SetIndexes("V" ,1,2,3)
|
asmlib.SetIndexes("V" ,1,2,3)
|
||||||
asmlib.SetIndexes("A" ,1,2,3)
|
asmlib.SetIndexes("A" ,1,2,3)
|
||||||
asmlib.SetIndexes("WV",1,2,3)
|
asmlib.SetIndexes("WV",1,2,3)
|
||||||
|
@ -2357,13 +2357,13 @@ function RegisterPOA(stData, ivID, sP, sO, sA)
|
|||||||
if(not IsHere(TransferPOA(tOffs.A, "A"))) then
|
if(not IsHere(TransferPOA(tOffs.A, "A"))) then
|
||||||
LogInstance("Angle nonassignable "..GetReport2(iID, stData.Slot)); return nil end
|
LogInstance("Angle nonassignable "..GetReport2(iID, stData.Slot)); return nil end
|
||||||
-------------------- Point --------------------
|
-------------------- 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])
|
ReloadPOA(tOffs.O[cvX], tOffs.O[cvY], tOffs.O[cvZ])
|
||||||
elseif(IsNull(sP) or IsBlank(sP)) then -- Empty value use origin
|
elseif(IsNull(sP) or IsBlank(sP)) then -- Empty value use origin
|
||||||
ReloadPOA(tOffs.O[cvX], tOffs.O[cvY], tOffs.O[cvZ])
|
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
|
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
|
if(not DecodePOA(sP)) then -- Try to decode the point when present
|
||||||
LogInstance("Point mismatch "..GetReport2(iID, stData.Slot)) end
|
LogInstance("Point mismatch "..GetReport2(iID, stData.Slot)) end
|
||||||
|
Loading…
Reference in New Issue
Block a user