Arch: fixed importWebGL to work from command line

This commit is contained in:
Yorik van Havre
2014-04-27 10:49:46 -03:00
parent d8de96470f
commit 39cd059e1b

View File

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