Skip to content

Commit

Permalink
Arch: import ifc, fix typo in material colors
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Oct 6, 2020
1 parent 8292664 commit 6d7ed78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Arch/importIFC.py
Expand Up @@ -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():
Expand Down

0 comments on commit 6d7ed78

Please sign in to comment.