mirror of
https://github.com/dvdvideo1234/TrackAssemblyTool.git
synced 2025-03-04 03:13:32 -05:00
Updated: Use log key notation for point also
This commit is contained in:
parent
4fc66042f7
commit
ea51f16b11
@ -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.745")
|
asmlib.SetOpVar("TOOL_VERSION","8.746")
|
||||||
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)
|
||||||
|
@ -2294,12 +2294,12 @@ function LocatePOA(oRec, ivPoID)
|
|||||||
elseif(IsNull(sP) or IsBlank(sP)) then -- In case of empty value or null use the origin
|
elseif(IsNull(sP) or IsBlank(sP)) then -- In case of empty value or null use the origin
|
||||||
ReloadPOA(tPOA.O[cvX], tPOA.O[cvY], tPOA.O[cvZ]) -- Override with the origin
|
ReloadPOA(tPOA.O[cvX], tPOA.O[cvY], tPOA.O[cvZ]) -- Override with the origin
|
||||||
elseif(sP:sub(1,1) == sE) then -- POA point must extracted from the model
|
elseif(sP:sub(1,1) == sE) then -- POA point must extracted from the model
|
||||||
local sP = sP:sub(2, -1) -- Read point transform ID and try to index
|
local sK = sP:sub(2, -1) -- Read point transform ID and try to index
|
||||||
local vP = GetAttachmentByID(oRec.Slot, sP) -- Read transform point
|
local vP = GetAttachmentByID(oRec.Slot, sK) -- Read transform point
|
||||||
if(IsHere(vP)) then ReloadPOA(vP[cvX], vP[cvY], vP[cvZ]) -- Load point into POA
|
if(IsHere(vP)) then ReloadPOA(vP[cvX], vP[cvY], vP[cvZ]) -- Load point into POA
|
||||||
else -- Try decoding the transform point when not applicable
|
else -- Try decoding the transform point when not applicable
|
||||||
if(IsNull(sP) or IsBlank(sP)) then ReloadPOA(tPOA.O[cvX], tPOA.O[cvY], tPOA.O[cvZ]) else
|
if(IsNull(sK) or IsBlank(sK)) then ReloadPOA(tPOA.O[cvX], tPOA.O[cvY], tPOA.O[cvZ]) else
|
||||||
if(not DecodePOA(sP)) then LogInstance("Point mismatch "..GetReport2(ID, oRec.Slot)) end
|
if(not DecodePOA(sK)) then LogInstance("Point mismatch "..GetReport2(ID, oRec.Slot)) end
|
||||||
end end -- Decode the transformation when is not null or empty string
|
end end -- Decode the transformation when is not null or empty string
|
||||||
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 LogInstance("Point mismatch "..GetReport2(ID, oRec.Slot)) end
|
if(not DecodePOA(sP)) then LogInstance("Point mismatch "..GetReport2(ID, oRec.Slot)) end
|
||||||
|
Loading…
Reference in New Issue
Block a user