diff --git a/LuaLibs/WallExec.lua b/LuaLibs/WallExec.lua index 81360a3..6fd50ce 100644 --- a/LuaLibs/WallExec.lua +++ b/LuaLibs/WallExec.lua @@ -907,15 +907,17 @@ local function SetMirroredOperations() local vMillings = {} -- raccolgo le fresature non giĆ  fatte in doppio - local nOperId = EgtGetNextOperation( EgtGetPhaseDisposition( 1)) - while nOperId do - EgtSetCurrMachining( nOperId) - local sUserNotes = EgtGetMachiningParam( MCH_MP.USERNOTES) - local bIsDouble = ( EgtGetValInNotes( sUserNotes, 'DOUBLE', 'i') or 0) > 0 - if not bIsDouble and EgtGetOperationType( nOperId) == MCH_OY.MILLING then - table.insert( vMillings, nOperId) + if WD.DOUBLE_HEAD_MILLCORNER then + local nOperId = EgtGetNextOperation( EgtGetPhaseDisposition( 1)) + while nOperId do + EgtSetCurrMachining( nOperId) + local sUserNotes = EgtGetMachiningParam( MCH_MP.USERNOTES) + local bIsDouble = ( EgtGetValInNotes( sUserNotes, 'DOUBLE', 'i') or 0) > 0 + if not bIsDouble and EgtGetOperationType( nOperId) == MCH_OY.MILLING then + table.insert( vMillings, nOperId) + end + nOperId = EgtGetNextOperation( nOperId) end - nOperId = EgtGetNextOperation( nOperId) end -- ordinamento delle operazioni raccolte secondo X e poi Y crescente