Arch: Small fix in webgl export - fixes #13160
This commit is contained in:
@@ -692,7 +692,7 @@ def export( exportList, filename, colors = None, camera = None ):
|
||||
|
||||
color = '#cccccc'
|
||||
opacity = 1.0
|
||||
if FreeCADGui:
|
||||
if FreeCADGui and hasattr(obj.ViewObject, "ShapeColor"):
|
||||
color = Draft.getrgb(obj.ViewObject.ShapeColor, testbw = False)
|
||||
opacity = int((100 - obj.ViewObject.Transparency)/5) / 20 # 0>>1 with step of 0.05
|
||||
elif colors:
|
||||
|
||||
Reference in New Issue
Block a user