diff --git a/src/Mod/Arch/importDAE.py b/src/Mod/Arch/importDAE.py index 5fb546706..dab4e0b50 100644 --- a/src/Mod/Arch/importDAE.py +++ b/src/Mod/Arch/importDAE.py @@ -22,7 +22,11 @@ #*************************************************************************** import FreeCAD, Mesh, os, numpy -from DraftTools import translate +if FreeCAD.GuiUp: + from DraftTools import translate +else: + def translate(context,text): + return text __title__="FreeCAD Collada importer" __author__ = "Yorik van Havre"