From 40dd008318fe89b21305c724dfeb91dfcb16553a Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Mon, 3 Apr 2023 18:00:48 +0200 Subject: [PATCH] =?UTF-8?q?HotFix:=20correzione=20per=20gestire=20la=20lam?= =?UTF-8?q?a=20principale=20sulla=20testa=20secondaria=20e=20questa=20non?= =?UTF-8?q?=20=C3=A8=20una=20testa=20da=20sotto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaLibs/ProcessCut.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LuaLibs/ProcessCut.lua b/LuaLibs/ProcessCut.lua index cacc7f2..2700ce5 100644 --- a/LuaLibs/ProcessCut.lua +++ b/LuaLibs/ProcessCut.lua @@ -767,7 +767,9 @@ function ProcessCut.Make( Proc, nPhase, nRawId, nPartId, dOvmHead, bFromBottom, -- recupero la lavorazione local sCutType = EgtIf( Proc.Head, 'HeadSide', 'TailSide') local sCutting - sCutting, bDownHead = ML.FindCutting( sCutType, bTopHead, bDownHead) + local bH2 + sCutting, bH2 = ML.FindCutting( sCutType, bTopHead, bDownHead) + bDownHead = bH2 and bDownHead if not sCutting then local sErr = 'Error : cutting not found in library' EgtOutLog( sErr)