gui: remove unnecessary Visibility change in AsmCmdAutoElementVis
This commit is contained in:
parent
5e44537be4
commit
e15a96bf81
|
@ -2274,6 +2274,8 @@ class AsmElementGroup(AsmGroup):
|
|||
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')
|
||||
|
||||
|
|
2
gui.py
2
gui.py
|
@ -550,7 +550,6 @@ class AsmCmdAutoElementVis(AsmCmdCheckable):
|
|||
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',
|
||||
|
@ -559,7 +558,6 @@ class AsmCmdAutoElementVis(AsmCmdCheckable):
|
|||
if checked:
|
||||
obj.Proxy.parent.Object.setElementVisible(
|
||||
obj.Name,False)
|
||||
obj.Visibility = False
|
||||
obj.ViewObject.OnTopWhenSelected = 2
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user