only reset the Op visibility when the active state is toggled
This commit is contained in:
@@ -150,7 +150,10 @@ class _ToggleOperation:
|
||||
|
||||
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()
|
||||
|
||||
|
||||
|
||||
@@ -472,9 +472,6 @@ class ObjectOp(object):
|
||||
'''
|
||||
PathLog.track()
|
||||
|
||||
if obj.ViewObject:
|
||||
obj.ViewObject.Visibility = obj.Active
|
||||
|
||||
if not obj.Active:
|
||||
path = Path.Path("(inactive operation)")
|
||||
obj.Path = path
|
||||
|
||||
Reference in New Issue
Block a user