assembly: flatten parts for exporting

This commit is contained in:
Zheng, Lei 2019-06-05 09:21:30 +08:00
parent 61c9d33f03
commit e1dbbf771f

View File

@ -285,6 +285,13 @@ class AsmPartGroup(AsmGroup):
self.derivedParts = None
super(AsmPartGroup,self).__init__()
def getSubObjects(self,obj,_reason):
# Deletion order problem may cause exception here. Just silence it
try:
return [ '{}.'.format(o.Name) for o in flattenGroup(obj) ]
except Exception:
pass
def linkSetup(self,obj):
super(AsmPartGroup,self).linkSetup(obj)
if not hasattr(obj,'DerivedFrom'):