Updated: BG-ID log output

This commit is contained in:
dvdvideo1234 2024-09-08 15:21:11 +03:00
parent d523d91d46
commit e2fa31cb96
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,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.763") asmlib.SetOpVar("TOOL_VERSION","8.764")
------------ CONFIGURE GLOBAL INIT OPVARS ------------ ------------ CONFIGURE GLOBAL INIT OPVARS ------------

View File

@ -4602,7 +4602,7 @@ function AttachBodyGroups(ePiece,sBgID)
while(tBG[iCnt] and IDs[iCnt]) do local vBG = tBG[iCnt] while(tBG[iCnt] and IDs[iCnt]) do local vBG = tBG[iCnt]
local maxID = (ePiece:GetBodygroupCount(vBG.id) - 1) local maxID = (ePiece:GetBodygroupCount(vBG.id) - 1)
local curID = mathClamp(mathFloor(tonumber(IDs[iCnt]) or 0), 0, maxID) local curID = mathClamp(mathFloor(tonumber(IDs[iCnt]) or 0), 0, maxID)
LogInstance("SetBodygroup "..GetReport(iCnt, maxID, vBG.id, curID)) LogInstance("SetBodygroup "..GetReport(iCnt, vBG.id, maxID, curID))
ePiece:SetBodygroup(vBG.id, curID); iCnt = iCnt + 1 ePiece:SetBodygroup(vBG.id, curID); iCnt = iCnt + 1
end; LogInstance("Success "..GetReport(sBgID)); return true end; LogInstance("Success "..GetReport(sBgID)); return true
end end