assembly: fix ViewProviderAsmElement default color
This commit is contained in:
parent
1e4db01ff5
commit
91cc933ec9
11
assembly.py
11
assembly.py
|
@ -604,15 +604,10 @@ class ViewProviderAsmElement(ViewProviderAsmOnTop):
|
||||||
_iconName = 'Assembly_Assembly_Element.svg'
|
_iconName = 'Assembly_Assembly_Element.svg'
|
||||||
|
|
||||||
def __init__(self,vobj):
|
def __init__(self,vobj):
|
||||||
if hasattr(vobj,'OverrideMaterial'):
|
vobj.ShapeColor = self.getDefaultColor()
|
||||||
vobj.OverrideMaterial = True
|
|
||||||
vobj.ShapeMaterial.DiffuseColor = \
|
|
||||||
vobj.ShapeMaterial.EmissiveColor = self.getDefaultColor()
|
|
||||||
vobj.DrawStyle = 1
|
|
||||||
else:
|
|
||||||
vobj.DiffuseColor = \
|
|
||||||
vobj.LineColor = \
|
|
||||||
vobj.PointColor = self.getDefaultColor()
|
vobj.PointColor = self.getDefaultColor()
|
||||||
|
vobj.LineColor = self.getDefaultColor()
|
||||||
|
vobj.Transparency = 50
|
||||||
vobj.LineWidth = 4
|
vobj.LineWidth = 4
|
||||||
vobj.PointSize = 4
|
vobj.PointSize = 4
|
||||||
super(ViewProviderAsmElement,self).__init__(vobj)
|
super(ViewProviderAsmElement,self).__init__(vobj)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user