assembly: fix getSubObjects()
This commit is contained in:
parent
c83fbce99c
commit
1b9c948f0e
|
@ -650,7 +650,7 @@ class AsmElement(AsmBase):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise RuntimeError('Invalid selection {}.{}'.format(
|
raise RuntimeError('Invalid selection {}.{}'.format(
|
||||||
group.Name,subname))
|
objName(group),subname))
|
||||||
|
|
||||||
element = selection.Element
|
element = selection.Element
|
||||||
|
|
||||||
|
@ -2454,9 +2454,11 @@ class Assembly(AsmGroup):
|
||||||
self.deleting = False
|
self.deleting = False
|
||||||
super(Assembly,self).__init__()
|
super(Assembly,self).__init__()
|
||||||
|
|
||||||
def getSubObjects(self,_obj,reason):
|
def getSubObjects(self,obj,reason):
|
||||||
# Deletion order problem may cause exception here. Just silence it
|
# Deletion order problem may cause exception here. Just silence it
|
||||||
try:
|
try:
|
||||||
|
if reason:
|
||||||
|
return [o.Name+'.' for o in obj.Group]
|
||||||
partGroup = self.getPartGroup()
|
partGroup = self.getPartGroup()
|
||||||
return ['{}.{}'.format(partGroup.Name,name)
|
return ['{}.{}'.format(partGroup.Name,name)
|
||||||
for name in partGroup.getSubObjects(reason)]
|
for name in partGroup.getSubObjects(reason)]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user