assembly: fix assembly freeze

This commit is contained in:
Zheng, Lei 2018-12-30 13:04:37 +08:00
parent 656fcdd2bd
commit faf13ee502

View File

@ -343,6 +343,9 @@ class AsmElement(AsmBase):
self.version = AsmVersion()
def canLoadPartial(self,_obj):
return 1 if self.getAssembly().frozen else 0
def migrate(self):
# To avoid over dependency, we no longer link to PartGroup, but to the
# child part object directly
@ -3511,7 +3514,7 @@ class ViewProviderAssembly(ViewProviderAsmGroup):
if prop=='ShowParts':
self.showParts()
def onFinishRestoring(self):
def finishRestoring(self):
self.showParts()
@classmethod