From d77cdd6c7d5d8dce7b4aa21f7761b0a07b29968f Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Sat, 26 Apr 2025 02:35:41 +0200 Subject: [PATCH] - in BatchProcessNew corretto valore ROT in log txt --- BatchProcessNew.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BatchProcessNew.lua b/BatchProcessNew.lua index 8aaf89c..b643305 100644 --- a/BatchProcessNew.lua +++ b/BatchProcessNew.lua @@ -519,7 +519,7 @@ if bToProcess then if RESULT[i].sType == 'Feature' and RESULT[i].ChosenStrategy.sStatus == 'Completed' then BEAM.ERR = 0 BEAM.MSG = '---' - BEAM.ROT = RESULT[i].nRotation or 0 + BEAM.ROT = -( RESULT[i].nRotation or 1) + 1 BEAM.CUTID = RESULT[i].idCut BEAM.TASKID = RESULT[i].idTask WriteErrToLogFile( BEAM.ERR, BEAM.MSG, BEAM.ROT, BEAM.CUTID, BEAM.TASKID) @@ -528,7 +528,7 @@ if bToProcess then sOutput = sOutput .. string.format( '[%d,%d] %s\n', RESULT[i].CutId, RESULT[i].TaskId, sMsg) BEAM.ERR = 19 BEAM.MSG = sMsg - BEAM.ROT = RESULT[i].nRotation or 0 + BEAM.ROT = -( RESULT[i].nRotation or 1) + 1 BEAM.CUTID = RESULT[i].idCut BEAM.TASKID = RESULT[i].idTask WriteErrToLogFile( BEAM.ERR, BEAM.MSG, BEAM.ROT, BEAM.CUTID, BEAM.TASKID) @@ -546,7 +546,7 @@ if bToProcess then sOutput = sOutput .. string.format( '[%d,%d] %s\n', RESULT[i].CutId, RESULT[i].TaskId, sMsg) BEAM.ERR = -19 BEAM.MSG = 'Completion : ' .. Proc.nCompletionIndex .. '/5\n' .. sMsg - BEAM.ROT = RESULT[i].nRotation or 0 + BEAM.ROT = -( RESULT[i].nRotation or 1) + 1 BEAM.CUTID = RESULT[i].idCut BEAM.TASKID = RESULT[i].idTask WriteErrToLogFile( BEAM.ERR, BEAM.MSG, BEAM.ROT, BEAM.CUTID, BEAM.TASKID)