diff --git a/src/Mod/Path/PathScripts/PathJobGui.py b/src/Mod/Path/PathScripts/PathJobGui.py index d4041e3518..40561d993c 100644 --- a/src/Mod/Path/PathScripts/PathJobGui.py +++ b/src/Mod/Path/PathScripts/PathJobGui.py @@ -73,7 +73,10 @@ def selectionEx(): finally: FreeCADGui.Selection.clearSelection() for s in sel: - FreeCADGui.Selection.addSelection(s.Object, s.SubElementNames) + if s.SubElementNames: + FreeCADGui.Selection.addSelection(s.Object, s.SubElementNames) + else: + FreeCADGui.Selection.addSelection(s.Object) class ViewProvider: