From 57dbea0f488c4e0df092a39b2117ca2f395bcf22 Mon Sep 17 00:00:00 2001 From: Russell Johnson Date: Sat, 10 Jun 2023 17:19:47 -0500 Subject: [PATCH] Path: Fixes #9303 Fix repetition of g-code production with compound Base --- src/Mod/Path/Path/Op/Engrave.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Mod/Path/Path/Op/Engrave.py b/src/Mod/Path/Path/Op/Engrave.py index 022bea8409651..8e00d77b419a3 100644 --- a/src/Mod/Path/Path/Op/Engrave.py +++ b/src/Mod/Path/Path/Op/Engrave.py @@ -106,7 +106,6 @@ def opExecute(self, obj): if len(obj.Base) >= 1: # user has selected specific subelements Path.Log.track(len(obj.Base)) - wires = [] for base, subs in obj.Base: edges = [] basewires = [] @@ -122,8 +121,7 @@ def opExecute(self, obj): for edgelist in Part.sortEdges(edges): basewires.append(Part.Wire(edgelist)) - wires.extend(basewires) - jobshapes.append(Part.makeCompound(wires)) + jobshapes.append(Part.makeCompound(basewires)) elif len(obj.BaseShapes) > 0: # user added specific shapes jobshapes.extend([base.Shape for base in obj.BaseShapes])