Skip to content

Commit

Permalink
Arch: Fixed encoding bug in IFC export
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jun 12, 2015
1 parent 5040a97 commit 40f8bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Arch/importIFC.py
Expand Up @@ -855,7 +855,7 @@ def export(exportList,filename):
# materials
materials = {}
for m in Arch.getDocumentMaterials():
mat = ifcfile.createIfcMaterial(str(m.Label))
mat = ifcfile.createIfcMaterial(m.Label.encode("utf8"))
materials[m.Label] = mat
if "Color" in m.Material:
rgb = tuple([float(f) for f in m.Material['Color'].strip("()").split(",")])
Expand Down

0 comments on commit 40f8bb4

Please sign in to comment.