From 4e9f7b0b62ae3a2044ed6abccf90fb611f5077a0 Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Sat, 12 Mar 2022 22:34:03 -0600 Subject: [PATCH] Path: Fix `self.removalshapes` declaration [Bug] Prior to this fix, the `self.removalshapes` variable is not declared if `obj.Base` does not exist, or is empty. This moves the declaration up in scope to the method level. --- src/Mod/Path/PathScripts/PathMillFace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathMillFace.py b/src/Mod/Path/PathScripts/PathMillFace.py index a37b928912..386c95b90a 100644 --- a/src/Mod/Path/PathScripts/PathMillFace.py +++ b/src/Mod/Path/PathScripts/PathMillFace.py @@ -151,13 +151,13 @@ class ObjectFace(PathPocketBase.ObjectPocket): def areaOpShapes(self, obj): """areaOpShapes(obj) ... return top face""" # Facing is done either against base objects + self.removalshapes = [] holeShape = None PathLog.debug("depthparams: {}".format([i for i in self.depthparams])) if obj.Base: PathLog.debug("obj.Base: {}".format(obj.Base)) - self.removalshapes = [] faces = [] holes = [] holeEnvs = []