Skip to content

Commit

Permalink
Fixes bug #4008: removes phantom path cause
Browse files Browse the repository at this point in the history
Job object was base of transformations, rather than Job base(clone).
  • Loading branch information
Russ4262 committed Jun 20, 2019
1 parent 97f42a6 commit 332bfb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mod/Path/PathScripts/PathJobGui.py
Expand Up @@ -1060,6 +1060,10 @@ def alignCenterInStockXY(self):
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:
Expand Down

0 comments on commit 332bfb5

Please sign in to comment.