diff --git a/src/Mod/Path/PathScripts/PathProfile.py b/src/Mod/Path/PathScripts/PathProfile.py index 739d92a235..8358e2ab7d 100644 --- a/src/Mod/Path/PathScripts/PathProfile.py +++ b/src/Mod/Path/PathScripts/PathProfile.py @@ -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: