Arch: fixed OBJ import without GUI - fixes #2305
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user