diff --git a/LuaLibs/WProcessDrill.lua b/LuaLibs/WProcessDrill.lua index 35037e8..e53519d 100644 --- a/LuaLibs/WProcessDrill.lua +++ b/LuaLibs/WProcessDrill.lua @@ -590,7 +590,7 @@ function WPD.Make( Proc, nRawId, b3Raw, bUseMultiDrill, DrillingsToAvoid) bOk = WPD.Make( Proc, nRawId, b3Raw, true, TriedDrillings) -- non trovata lavorazione, si prova con le lavorazioni singole if not bOk then - for i = 1, #Proc.SkippedGeometries do + for i = #Proc.SkippedGeometries, 1, -1 do for j = 1, #Proc.OtherGeometries do local AuxIdOtherGeometry = EgtGetInfo( Proc.OtherGeometries[j].Id, 'AUXID', 'i') or 0 if AuxIdOtherGeometry then AuxIdOtherGeometry = AuxIdOtherGeometry + Proc.OtherGeometries[j].Id end diff --git a/LuaLibs/WallExec.lua b/LuaLibs/WallExec.lua index e68fc0f..603ce73 100644 --- a/LuaLibs/WallExec.lua +++ b/LuaLibs/WallExec.lua @@ -1099,7 +1099,7 @@ function GetFeatureInfoAndDependency( vProc) -- se non รจ la stessa feature if Proc.Id ~= ProcB.Id then -- raggruppamento fori per eventuale Multidrill - if Drill.Identify( Proc) and Proc.Flg ~= 0 and Drill.Identify( ProcB) and ProcB.Flg ~= 0 then + if WD.USE_MULTI_DRILL and Drill.Identify( Proc) and Proc.Flg ~= 0 and Drill.Identify( ProcB) and ProcB.Flg ~= 0 then if not Proc.OtherGeometries then Proc.OtherGeometries = {} end