OpenSCAD: set legacy options when using importDXF

This commit is contained in:
Yorik van Havre 2016-02-02 14:19:40 -02:00
parent e214567a64
commit 388ea0629c

View File

@ -477,6 +477,8 @@ def superWireReverse(debuglist,closed=False):
def importDXFface(filename,layer=None,doc=None):
import FreeCAD,importDXF
importDXF.readPreferences()
importDXF.getDXFlibs()
importDXF.dxfMakeBlocks = False
doc = doc or FreeCAD.activeDocument()
layers = importDXF.processdxf(doc,filename) or importDXF.layers
for l in layers: