From e1dc521fe56be31be115100589a16ac22094b6cf Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Tue, 12 Sep 2023 09:01:17 +0200 Subject: [PATCH] - in LapJoint gestito correttamente il ritorno nil di GetUShapeWidth --- LuaLibs/ProcessLapJoint.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LuaLibs/ProcessLapJoint.lua b/LuaLibs/ProcessLapJoint.lua index 6ad89a2..f6abc40 100644 --- a/LuaLibs/ProcessLapJoint.lua +++ b/LuaLibs/ProcessLapJoint.lua @@ -3503,7 +3503,7 @@ local function MakeByPockets( Proc, nPhase, nRawId, nPartId, nChamfer, dDepthCha -- se tre facce aumento il diametro di quanto possibile elseif Proc.Fct == 3 then local nFacInd = BL.GetFaceWithMostAdj( Proc.Id, nPartId, false) - local dWidth = GetUShapeWidth( Proc, nFacInd or -1) + local dWidth = GetUShapeWidth( Proc, nFacInd or -1) or dDimMin if dWidth > dDimMin then dDimMin = min( 2 * dDimMin, dWidth) end