assembly: trun on 'NoModify' for VisibilityList
This commit is contained in:
parent
75632fee41
commit
56afcb63d8
|
@ -253,7 +253,7 @@ class AsmGroup(AsmBase):
|
|||
self.Object.setPropertyStatus('Group',('Hidden','Immutable'))
|
||||
# 'PartialTrigger' is just for silencing warning when partial load
|
||||
self.Object.setPropertyStatus('VisibilityList',
|
||||
('Output','PartialTrigger'))
|
||||
('Output','PartialTrigger','NoModify'))
|
||||
|
||||
def attach(self,obj):
|
||||
obj.addProperty("App::PropertyLinkList","Group","Base",'')
|
||||
|
@ -2596,8 +2596,6 @@ class AsmElementGroup(AsmGroup):
|
|||
obj.cacheChildLabel()
|
||||
# 'PartialTrigger' is just for silencing warning when partial load
|
||||
self.Object.setPropertyStatus('VisibilityList', 'PartialTrigger')
|
||||
if gui.AsmCmdManager.AutoElementVis:
|
||||
obj.setPropertyStatus('VisibilityList','NoModify')
|
||||
|
||||
def getAssembly(self):
|
||||
return self.parent
|
||||
|
|
2
gui.py
2
gui.py
|
@ -671,8 +671,6 @@ class AsmCmdAutoElementVis(AsmCmdCheckable):
|
|||
if isTypeOf(obj,(AsmConstraint,AsmElementGroup)):
|
||||
if isTypeOf(obj,AsmConstraint):
|
||||
obj.ViewObject.OnTopWhenSelected = 2
|
||||
obj.setPropertyStatus('VisibilityList',
|
||||
'NoModify' if checked else '-NoModify')
|
||||
elif isTypeOf(obj,(AsmElementLink,AsmElement)):
|
||||
if checked:
|
||||
obj.Proxy.parent.Object.setElementVisible(
|
||||
|
|
Loading…
Reference in New Issue
Block a user