Skip to content

Commit

Permalink
Path: Fixes FreeCAD#9303
Browse files Browse the repository at this point in the history
Fix repetition of g-code production with compound Base
  • Loading branch information
Russ4262 committed Jul 1, 2023
1 parent ef11cee commit 57dbea0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Mod/Path/Path/Op/Engrave.py
Expand Up @@ -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 = []
Expand All @@ -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])
Expand Down

0 comments on commit 57dbea0

Please sign in to comment.