- in LapJoint gestito correttamente il ritorno nil di GetUShapeWidth

This commit is contained in:
luca.mazzoleni
2023-09-12 09:01:17 +02:00
parent 30fc2ab1a4
commit 0cd8bea6c5
+1 -1
View File
@@ -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