Skip to content

Commit

Permalink
Merge pull request #3038 from realthunder/PathDrill
Browse files Browse the repository at this point in the history
Path: fix drill job creation
  • Loading branch information
sliptonic committed Feb 17, 2020
2 parents 71ce215 + 9a7964c commit 8c6a52b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Mod/Path/PathScripts/PathCircularHoleBaseGui.py
Expand Up @@ -52,6 +52,8 @@ class TaskPanelHoleGeometryPage(PathOpGui.TaskPanelBaseGeometryPage):
DataObject = QtCore.Qt.ItemDataRole.UserRole + 1
DataObjectSub = QtCore.Qt.ItemDataRole.UserRole + 2

InitBase = False

def getForm(self):
'''getForm() ... load and return page'''
return FreeCADGui.PySideUic.loadUi(":/panels/PageBaseHoleGeometryEdit.ui")
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Path/PathScripts/PathOpGui.py
Expand Up @@ -1017,7 +1017,7 @@ def setupUi(self):
if self.deleteOnReject and PathOp.FeatureBaseGeometry & self.obj.Proxy.opFeatures(self.obj):
sel = FreeCADGui.Selection.getSelectionEx()
for page in self.featurePages:
if hasattr(page, 'addBase'):
if getattr(page, 'InitBase', True) and hasattr(page, 'addBase'):
page.clearBase()
page.addBaseGeometry(sel)

Expand Down

0 comments on commit 8c6a52b

Please sign in to comment.