From a9e040eb107369a4bafbc850b2c3cb67b8b81923 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Sat, 15 Sep 2018 18:43:27 -0700 Subject: [PATCH] Fixed selection restore of entire object. --- src/Mod/Path/PathScripts/PathJobGui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: