Arch: Small fix in webgl export - fixes #13160

This commit is contained in:
Yorik van Havre
2024-03-26 11:21:52 +01:00
parent 4c9b21d003
commit 7faaf67a68

View File

@@ -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: