From c64b1691644ae0f471b71f3db75f4033f5330b81 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sun, 27 Apr 2014 10:49:46 -0300 Subject: [PATCH] Arch: fixed importWebGL to work from command line --- src/Mod/Arch/importWebGL.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/importWebGL.py b/src/Mod/Arch/importWebGL.py index 62f86e372..fece7c52c 100644 --- a/src/Mod/Arch/importWebGL.py +++ b/src/Mod/Arch/importWebGL.py @@ -28,12 +28,14 @@ importWebGL.template = a complete html file, where $CameraData is a placeholder FreeCAD camera, and $ObjectsData a placeholder for the FreeCAD objects.""" import FreeCAD,Draft,Part,DraftGeomUtils -from DraftTools import translate if FreeCAD.GuiUp: import FreeCADGui + from DraftTools import translate else: FreeCADGui = None + def translate(ctxt,txt): + return txt tab = " " # the tab size wireframeStyle = "faceloop" # this can be "faceloop", "multimaterial" or None