From 384541eede5cd5f00e8da6b3bcd9d33a4809ebeb Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Mon, 30 Nov 2020 22:31:59 -0600 Subject: [PATCH] Path: Instate `obj.removalshape` property for debugging purposes --- src/Mod/Path/PathScripts/PathMillFace.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathMillFace.py b/src/Mod/Path/PathScripts/PathMillFace.py index 45a620dc26..0400bd7f31 100644 --- a/src/Mod/Path/PathScripts/PathMillFace.py +++ b/src/Mod/Path/PathScripts/PathMillFace.py @@ -106,6 +106,7 @@ class ObjectFace(PathPocketBase.ObjectPocket): if obj.Base: PathLog.debug("obj.Base: {}".format(obj.Base)) + self.removalshapes = list() faces = [] holes = [] holeEnvs = [] @@ -217,7 +218,11 @@ class ObjectFace(PathPocketBase.ObjectPocket): else: PathLog.debug("Processing solid face ...") tup = env, False, 'pathMillFace', 0.0, 'X', obj.StartDepth.Value, obj.FinalDepth.Value - return [tup] + + self.removalshapes.append(tup) + obj.removalshape = self.removalshapes[0][0] # save removal shape + + return self.removalshapes def areaOpSetDefaultValues(self, obj, job): '''areaOpSetDefaultValues(obj, job) ... initialize mill facing properties'''