diff --git a/LuaLibs/FaceData.lua b/LuaLibs/FaceData.lua index bae8104..3fe713b 100644 --- a/LuaLibs/FaceData.lua +++ b/LuaLibs/FaceData.lua @@ -535,6 +535,7 @@ function FaceData.GetMainFaces( Proc, Part) Logs.WriteMainFacesLog( Proc, MainFaces) end else + MainFaces = nil EgtOutLog( '---MainFaces NOT NEEDED---') end diff --git a/StrategyLibs/SLOTBYBLADE.lua b/StrategyLibs/SLOTBYBLADE.lua index 0b1beb2..d49fb1c 100644 --- a/StrategyLibs/SLOTBYBLADE.lua +++ b/StrategyLibs/SLOTBYBLADE.lua @@ -145,7 +145,7 @@ function SLOTBYBLADE.Make( Proc, Part, FaceToMachine, EdgeToMachine, OptionalPar EgtOutLog( Cutting.sMessage) return Cutting, EdgeToMachine.dElevation end - if #( Proc.MainFaces) > 0 and #( Proc.MainFaces.SideFaces) > 1 then + if Proc.MainFaces and #( Proc.MainFaces.SideFaces) > 1 then -- se tasca più stretta della lama la strategia non è applicabile if TOOLS[Cutting.nToolIndex].dDiameter > EdgeToMachine.dLength + 10 * GEO.EPS_SMALL then Cutting.sMessage = 'Pocket too narrow for blade diameter' diff --git a/StrategyLibs/SLOTBYCHAINSAW.lua b/StrategyLibs/SLOTBYCHAINSAW.lua index dbf2bff..92608a5 100644 --- a/StrategyLibs/SLOTBYCHAINSAW.lua +++ b/StrategyLibs/SLOTBYCHAINSAW.lua @@ -124,7 +124,7 @@ function SLOTBYCHAINSAW.Make( Proc, Part, FaceToMachine, EdgeToMachine, Optional EgtOutLog( Mortising.sMessage) return Mortising end - if #( Proc.MainFaces) > 0 and #( Proc.MainFaces.SideFaces) > 1 then + if Proc.MainFaces and #( Proc.MainFaces.SideFaces) > 1 then -- se tasca più stretta della sega a catena la strategia non è applicabile if TOOLS[Mortising.nToolIndex].dWidth > EdgeToMachine.dLength + 10 * GEO.EPS_SMALL then Mortising.sMessage = 'Pocket too narrow for chainsaw width'