- correzione in MachiningLib per gestire il caso in cui una lavorazione sia attiva ma non ha alcun utensile collegato

This commit is contained in:
luca.mazzoleni
2024-01-23 10:39:40 +01:00
parent 337e13dbde
commit 418fb4e284
+6
View File
@@ -255,6 +255,12 @@ function GetMachinings( MachiningType, sType)
end
end
end
-- rimuovo le lavorazioni senza utensile
for i, machining in ipairs( Machinings) do
if not machining.Tool.Name then
table.remove( Machinings, i)
end
end
return Machinings
end