assembly: do not show axis cross for multipled elements
This commit is contained in:
parent
a8e32a0ed9
commit
049eca5bdb
|
@ -1006,16 +1006,19 @@ class ViewProviderAsmElement(ViewProviderAsmOnTop):
|
||||||
return
|
return
|
||||||
if prop == 'Detach':
|
if prop == 'Detach':
|
||||||
vobj.signalChangeIcon()
|
vobj.signalChangeIcon()
|
||||||
elif prop in ('Placement','Shape'):
|
elif prop in ('Placement','Shape','Radius'):
|
||||||
self.setupAxis()
|
self.setupAxis()
|
||||||
|
|
||||||
_AxisOrigin = None
|
_AxisOrigin = None
|
||||||
|
|
||||||
def showCS(self):
|
def showCS(self):
|
||||||
if getattr(self.ViewObject,'ShowCS',False) or\
|
vobj = getattr(self,'ViewObject',None)
|
||||||
|
if not vobj or hasattr(vobj.Object,'Radius'):
|
||||||
|
return
|
||||||
|
if getattr(vobj,'ShowCS',False) or\
|
||||||
gui.AsmCmdManager.ShowElementCS:
|
gui.AsmCmdManager.ShowElementCS:
|
||||||
return True
|
return True
|
||||||
return utils.isInfinite(self.ViewObject.Object.Shape)
|
return utils.isInfinite(vobj.Object.Shape)
|
||||||
|
|
||||||
def getElementPicked(self,pp):
|
def getElementPicked(self,pp):
|
||||||
vobj = self.ViewObject
|
vobj = self.ViewObject
|
||||||
|
|
Loading…
Reference in New Issue
Block a user