Draft: Fix module loading in non-GUI mode
The WorkingPlane module is used in getSVG and getDXF, so we need to import it unconditionally.
This commit is contained in:
@@ -47,11 +47,11 @@ __url__ = "http://www.freecadweb.org"
|
||||
|
||||
'''The Draft module offers a range of tools to create and manipulate basic 2D objects'''
|
||||
|
||||
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc
|
||||
import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc, WorkingPlane
|
||||
from FreeCAD import Vector
|
||||
|
||||
if FreeCAD.GuiUp:
|
||||
import FreeCADGui, WorkingPlane
|
||||
import FreeCADGui
|
||||
from PySide import QtCore
|
||||
from PySide.QtCore import QT_TRANSLATE_NOOP
|
||||
gui = True
|
||||
|
||||
Reference in New Issue
Block a user