From 8b3c4ac0e80c6aaa7166312fb19244d4c899c09e Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Wed, 19 Jun 2019 23:35:13 -0500 Subject: [PATCH] Fixes bug #4008: removes phantom path cause Job object was base of transformations, rather than Job base(clone). --- src/Mod/Path/PathScripts/PathJobGui.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Path/PathScripts/PathJobGui.py b/src/Mod/Path/PathScripts/PathJobGui.py index 98816b478e..25b5edf58b 100644 --- a/src/Mod/Path/PathScripts/PathJobGui.py +++ b/src/Mod/Path/PathScripts/PathJobGui.py @@ -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: