From 5792c3111dfb56dddcca6bd30443506f8096e3e2 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Thu, 16 Mar 2023 12:39:32 +0100 Subject: [PATCH] fix --- LuaLibs/ProcessLongCut.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LuaLibs/ProcessLongCut.lua b/LuaLibs/ProcessLongCut.lua index 62d46e6..cdf1436 100644 --- a/LuaLibs/ProcessLongCut.lua +++ b/LuaLibs/ProcessLongCut.lua @@ -1056,7 +1056,7 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId, bCustUseBlade, nCus local bLastCut = ( i == 1) local dSal = EgtIf( bFirstCut, -dEndDist, - dEndAccDist - ( nC - i - 1) * dC) local dEal = EgtIf( bLastCut, -dStartDist, - dStartAccDist - ( i - 2) * dC) - local bShortenStartOrEnd = EgtIf( bFront, not bFirstCut, bFirstCut) + local bShortenStartOrEnd = true local bChainSawOk, sErr = MakeSideFaceByChainSaw( Proc.Id, dChainSawDepth, dChainSawOverMaterial, dSal, dEal, bShortenStartOrEnd, bShortenStartOrEnd) if not bChainSawOk then return false, sErr end end @@ -1069,7 +1069,8 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId, bCustUseBlade, nCus -- recupero la lavorazione local bDownHead = ( nSide == - 1) sMchType = EgtIf( bDownHead, 'Long2Cut_H2', 'Long2Cut') - local bExcludeH3 = bLarghAsFace and abs( nSide) ~= 1 + -- rimossa l'esclusione della terza testa a seguito di modifica della testa stessa che la rende utilizzabile in tutti i casi + --local bExcludeH3 = bLarghAsFace and abs( nSide) ~= 1 local sMilling = ML.FindMilling( sMchType, dElev, nil, nil, nil, not bDownHead, bDownHead, nil, bExcludeH3) if not sMilling then local sErr = 'Error : milling '..sMchType..' not found in library'