Fixed selection restore of entire object.

This commit is contained in:
Markus Lampert
2018-09-15 18:43:27 -07:00
committed by wmayer
parent 91371a6c6a
commit a9e040eb10

View File

@@ -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: