Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Properly calling base logic for adding a base object if special handl…
…ing did not apply.
  • Loading branch information
mlampert committed Jan 25, 2021
1 parent c2fa48b commit 38b142b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/Mod/Path/PathScripts/PathVcarveGui.py
Expand Up @@ -53,6 +53,7 @@ def super(self):
return super(TaskPanelBaseGeometryPage, self)

def addBaseGeometry(self, selection):
PathLog.track(selection)
added = False
shapes = self.obj.BaseShapes
for sel in selection:
Expand All @@ -78,10 +79,12 @@ def addBaseGeometry(self, selection):
shapes.append(base)
self.obj.BaseShapes = shapes
added = True
else:
# user wants us to engrave an edge of face of a base model
base = self.super().addBaseGeometry(selection)
added = added or base

if not added:
# user wants us to engrave an edge of face of a base model
PathLog.info(" call default")
base = self.super().addBaseGeometry(selection)
added = added or base

return added

Expand Down

0 comments on commit 38b142b

Please sign in to comment.