Merge pull request #13162 from yorikvanhavre/draft-fix-webgl

Arch: Small fix in webgl export
This commit is contained in:
Roy-043
2024-03-27 16:44:15 +01:00
committed by GitHub

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: