Skip to content

Commit

Permalink
Merge pull request #4188 from Russ4262/fix_import_base_geometry
Browse files Browse the repository at this point in the history
Path: Fix `Import` feature of Base Geometry
  • Loading branch information
sliptonic committed Jan 13, 2021
2 parents 60b1930 + 1d99e00 commit 83cfffd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Mod/Path/PathScripts/PathOpGui.py
Expand Up @@ -606,12 +606,13 @@ def clearBase(self):
def importBaseGeometry(self):
opLabel = str(self.form.geometryImportList.currentText())
ops = FreeCAD.ActiveDocument.getObjectsByLabel(opLabel)
if ops.__len__() > 1:
if len(ops) > 1:
msg = translate('PathOpGui', 'Mulitiple operations are labeled as')
msg += " {}\n".format(opLabel)
FreeCAD.Console.PrintWarning(msg)
for (base, subList) in ops[0].Base:
FreeCADGui.Selection.addSelection(base, subList)
(base, subList) = ops[0].Base[0]
FreeCADGui.Selection.clearSelection()
FreeCADGui.Selection.addSelection(base, subList)
self.addBase()

def registerSignalHandlers(self, obj):
Expand Down

0 comments on commit 83cfffd

Please sign in to comment.