assembly: hide constraint group when empty
This commit is contained in:
parent
4feccb6fab
commit
bf7eac30be
|
@ -2159,6 +2159,13 @@ class ViewProviderAsmConstraintGroup(ViewProviderAsmGroup):
|
|||
def onDelete(self,_vobj,_subs):
|
||||
return False
|
||||
|
||||
def updateData(self,obj,prop):
|
||||
if prop == 'Group':
|
||||
vis = len(obj.Group)!=0
|
||||
vobj = obj.ViewObject
|
||||
if vis != vobj.ShowInTree:
|
||||
vobj.ShowInTree = vis
|
||||
|
||||
|
||||
class AsmElementGroup(AsmGroup):
|
||||
def __init__(self,parent):
|
||||
|
|
Loading…
Reference in New Issue
Block a user