From 91dd729d4e50652910a0164be74be4d476e44027 Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Thu, 18 Feb 2021 01:43:11 -0600 Subject: [PATCH] Path: Fix error for undefined `profileshape` variable --- src/Mod/Path/PathScripts/PathProfile.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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: