Arch: Fixed OBJ export

This commit is contained in:
Yorik van Havre
2018-06-26 15:26:00 -03:00
parent 65739c5f1f
commit 187e464bc3

View File

@@ -113,7 +113,8 @@ def getIndices(shape,offset):
def export(exportList,filename):
"called when freecad exports a file"
outfile = pythonopen(filename,"wb")
import codecs
outfile = codecs.open(filename,"wb",encoding="utf8")
ver = FreeCAD.Version()
outfile.write("# FreeCAD v" + ver[0] + "." + ver[1] + " build" + ver[2] + " Arch module\n")
outfile.write("# http://www.freecadweb.org\n")