Merge pull request #3430 from Russ4262/ProfileEdges_Fix

Path: Fix `extrude()` fails with zero vector
This commit is contained in:
sliptonic
2020-05-06 13:56:10 -05:00
committed by GitHub

View File

@@ -197,6 +197,11 @@ class ObjectProfile(PathProfileBase.ObjectProfile):
sdv = wBB.ZMax
fdv = obj.FinalDepth.Value
extLenFwd = sdv - fdv
if extLenFwd <= 0.0:
msg = translate('PathProfile',
'For open edges, select top edge and set Final Depth manually.')
FreeCAD.Console.PrintError(msg + '\n')
return False
WIRE = flatWire.Wires[0]
numEdges = len(WIRE.Edges)