Skip to content

Commit

Permalink
gui: remove unnecessary Visibility change in AsmCmdAutoElementVis
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Jan 18, 2019
1 parent 5e44537 commit e15a96b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -2274,6 +2274,8 @@ def linkSetup(self,obj):
for o in obj.Group:
getProxy(o,AsmElement).parent = self
obj.cacheChildLabel()
# 'PartialTrigger' is just for silencing warning when partial load
self.Object.setPropertyStatus('VisibilityList', 'PartialTrigger')
if gui.AsmCmdManager.AutoElementVis:
obj.setPropertyStatus('VisibilityList','NoModify')

Expand Down
2 changes: 0 additions & 2 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,6 @@ def Activated(cls,checked):
for doc in FreeCAD.listDocuments().values():
for obj in doc.Objects:
if isTypeOf(obj,(AsmConstraint,AsmElementGroup)):
obj.Visibility = False
if isTypeOf(obj,AsmConstraint):
obj.ViewObject.OnTopWhenSelected = 2
obj.setPropertyStatus('VisibilityList',
Expand All @@ -559,7 +558,6 @@ def Activated(cls,checked):
if checked:
obj.Proxy.parent.Object.setElementVisible(
obj.Name,False)
obj.Visibility = False
obj.ViewObject.OnTopWhenSelected = 2


Expand Down

0 comments on commit e15a96b

Please sign in to comment.