Fixes bug #4008: removes phantom path cause

Job object was base of transformations, rather than Job base(clone).
This commit is contained in:
Russell Johnson
2019-06-19 23:35:13 -05:00
parent f8de98d03c
commit 8b3c4ac0e8

View File

@@ -1060,6 +1060,10 @@ class TaskPanel:
Draft.move(sel.Object, by)
def updateSelection(self):
# Remove Job object if present in Selection: source of phantom paths
if self.obj in FreeCADGui.Selection.getSelection():
FreeCADGui.Selection.removeSelection(self.obj)
sel = FreeCADGui.Selection.getSelectionEx()
if len(sel) == 1 and len(sel[0].SubObjects) == 1: