Disable linked properties in AsmElement and AsmElementLink

This commit is contained in:
Zheng, Lei 2017-11-16 18:26:08 +08:00
parent 8999ca6015
commit 9e2037a13b

View File

@ -197,6 +197,9 @@ class AsmElement(AsmBase):
obj.addProperty("App::PropertyXLink","LinkedObject"," Link",'')
super(AsmElement,self).attach(obj)
def canLinkProperties(self,_obj):
return False
def execute(self,_obj):
self.getShape(True)
return False
@ -533,6 +536,9 @@ class AsmElementLink(AsmBase):
obj.addProperty("App::PropertyXLink","LinkedObject"," Link",'')
super(AsmElementLink,self).attach(obj)
def canLinkProperties(self,_obj):
return False
def execute(self,_obj):
self.getInfo(True)
return False