Arch: fixed OBJ import without GUI - fixes #2305

This commit is contained in:
Yorik van Havre
2016-01-31 16:53:54 -02:00
parent 6b0b3a8390
commit cb89c35fde

View File

@@ -22,7 +22,11 @@
#***************************************************************************
import FreeCAD, DraftGeomUtils, Part, Draft
from DraftTools import translate
if FreeCAD.GuiUp:
from DraftTools import translate
else:
def translate(context,text):
return text
p = Draft.precision()