Arch: import ifc, fix typo in material colors

This commit is contained in:
Bernd Hahnebach
2020-10-06 17:20:32 +02:00
committed by GitHub
parent 74a1f21b67
commit 6cb4c91ee1

View File

@@ -1266,7 +1266,7 @@ def insert(srcfile, docname, skip=[], only=[], root=None, preferences=None):
# values in colors are None if something went wrong
# thus the "DiffuseColor" will only be set if the color is not None
mdict = {}
if material.id() in colorscolors and colors[material.id()] is not None:
if material.id() in colors and colors[material.id()] is not None:
mdict["DiffuseColor"] = str(colors[material.id()])
else:
for o,m in mattable.items():