parent
edac36d4df
commit
1cdf1fe5c4
|
@ -4203,6 +4203,7 @@ class ViewProviderAssembly(ViewProviderAsmGroup):
|
||||||
def __init__(self,vobj):
|
def __init__(self,vobj):
|
||||||
self._movingPart = None
|
self._movingPart = None
|
||||||
super(ViewProviderAssembly,self).__init__(vobj)
|
super(ViewProviderAssembly,self).__init__(vobj)
|
||||||
|
self.showParts()
|
||||||
|
|
||||||
def setupContextMenu(self,vobj,menu):
|
def setupContextMenu(self,vobj,menu):
|
||||||
obj = vobj.Object
|
obj = vobj.Object
|
||||||
|
@ -4345,6 +4346,9 @@ class ViewProviderAssembly(ViewProviderAsmGroup):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def showParts(self):
|
def showParts(self):
|
||||||
|
if not hasProperty(self.ViewObject,'ShowParts'):
|
||||||
|
self.ViewObject.addProperty("App::PropertyBool","ShowParts"," Link")
|
||||||
|
return
|
||||||
proxy = self.ViewObject.Object.Proxy
|
proxy = self.ViewObject.Object.Proxy
|
||||||
if proxy:
|
if proxy:
|
||||||
proxy.getPartGroup().ViewObject.Proxy.showParts()
|
proxy.getPartGroup().ViewObject.Proxy.showParts()
|
||||||
|
@ -4365,10 +4369,7 @@ class ViewProviderAssembly(ViewProviderAsmGroup):
|
||||||
self.showParts()
|
self.showParts()
|
||||||
|
|
||||||
def finishRestoring(self):
|
def finishRestoring(self):
|
||||||
if not hasProperty(self.ViewObject,'ShowParts'):
|
self.showParts()
|
||||||
self.ViewObject.addProperty("App::PropertyBool","ShowParts"," Link")
|
|
||||||
else:
|
|
||||||
self.showParts()
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def isBusy(cls):
|
def isBusy(cls):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user