Skip to content

Commit

Permalink
Merge pull request #3502 from dubstar-04/fixes/op-visibility
Browse files Browse the repository at this point in the history
[Path] - Don't reset the operations visibility state during document recompute
  • Loading branch information
sliptonic committed May 25, 2020
2 parents f1354fe + 760685e commit 388bfbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/Mod/Path/PathCommands.py
Expand Up @@ -150,7 +150,10 @@ def IsActive(self):

def Activated(self):
for sel in FreeCADGui.Selection.getSelectionEx():
PathScripts.PathDressup.baseOp(sel.Object).Active = not(PathScripts.PathDressup.baseOp(sel.Object).Active)
op = PathScripts.PathDressup.baseOp(sel.Object)
op.Active = not op.Active
op.ViewObject.Visibility = op.Active

FreeCAD.ActiveDocument.recompute()


Expand Down
3 changes: 0 additions & 3 deletions src/Mod/Path/PathScripts/PathOp.py
Expand Up @@ -472,9 +472,6 @@ def execute(self, obj):
'''
PathLog.track()

if obj.ViewObject:
obj.ViewObject.Visibility = obj.Active

if not obj.Active:
path = Path.Path("(inactive operation)")
obj.Path = path
Expand Down

0 comments on commit 388bfbd

Please sign in to comment.