From 6a3afb875dba43bcca3711cc55feb2b6ec987f72 Mon Sep 17 00:00:00 2001 From: Furgo <148809153+furgo16@users.noreply.github.com> Date: Thu, 28 Mar 2024 08:40:07 +0100 Subject: [PATCH] Fix to WebGL export. Closes: #13186 --- 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 e9b1ef5cb7..c0c0b2df3d 100644 --- a/src/Mod/Arch/importWebGL.py +++ b/src/Mod/Arch/importWebGL.py @@ -733,7 +733,7 @@ def export( exportList, filename, colors = None, camera = None ): if obj.isDerivedFrom('Part::Feature'): deviation = 0.5 - if FreeCADGui: + if FreeCADGui and hasattr(obj.ViewObject, "Deviation"): deviation = obj.ViewObject.Deviation # obj.ViewObject.DiffuseColor is length=1 when all faces are the same color, length=len(faces) for when they're not