From 0388dbdc0f555b09cd079fa53d3df62b5006f747 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Wed, 12 Feb 2025 11:19:23 +0100 Subject: [PATCH] - in MultiDrill piccole correzioni --- LuaLibs/WProcessDrill.lua | 2 +- LuaLibs/WallExec.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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