Path: Fix error for undefined profileshape variable

This commit is contained in:
Russell Johnson
2021-02-18 01:43:11 -06:00
parent 8f4f304635
commit 91dd729d4e

View File

@@ -407,13 +407,11 @@ class ObjectProfile(PathAreaOp.ObjectOp):
tup = shapeEnv, True, 'pathProfile', angle, axis, strDep, finDep
shapes.append(tup)
if obj.processPerimeter:
if faces and obj.processPerimeter:
if obj.HandleMultipleFeatures == 'Collectively':
custDepthparams = self.depthparams
cont = True
if len(faces) > 0:
profileshape = Part.makeCompound(faces)
profileshape = Part.makeCompound(faces)
if obj.LimitDepthToFace is True and obj.EnableRotation != 'Off':
if profileshape.BoundBox.ZMin > obj.FinalDepth.Value: