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