Arch: Fixed encoding bug in IFC export
This commit is contained in:
parent
5040a97b0b
commit
40f8bb4143
|
@ -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(",")])
|
||||
|
|
Loading…
Reference in New Issue
Block a user