From 7faaf67a68350d47f74dc363098c4c8d0e06e4c0 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 26 Mar 2024 11:21:52 +0100 Subject: [PATCH] Arch: Small fix in webgl export - fixes #13160 --- src/Mod/Arch/importWebGL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Arch/importWebGL.py b/src/Mod/Arch/importWebGL.py index 3cd41255bb..e9b1ef5cb7 100644 --- a/src/Mod/Arch/importWebGL.py +++ b/src/Mod/Arch/importWebGL.py @@ -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: