From e37d29fae37e1ad81b9645a520afa3eb355db25f Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Tue, 4 Mar 2025 09:48:50 +0100 Subject: [PATCH] Piccola correzione ricerca utensile nella FindMill --- LuaLibs/MachiningLib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LuaLibs/MachiningLib.lua b/LuaLibs/MachiningLib.lua index eea32ce..1f45f42 100644 --- a/LuaLibs/MachiningLib.lua +++ b/LuaLibs/MachiningLib.lua @@ -264,7 +264,7 @@ function MachiningLib.FindMill( Proc, ToolSearchParameters) -- se entrambi completi if dBestToolResidualDepth <= 0 and dCurrentResidualDepth <= 0 then -- se il migliore era su aggregato e corrente montanto direttamente, prediligo utensile montato direttamente - if not TOOLS[i].SetupInfo.bToolOnAggregate and TOOLS[i].SetupInfo.bToolOnAggregate then + if not TOOLS[i].SetupInfo.bToolOnAggregate and TOOLS[nBestToolIndex].SetupInfo.bToolOnAggregate then nBestToolIndex = i dBestToolResidualDepth = dCurrentResidualDepth -- se hanno stesso montaggio