From 6d7ed787b29ad06dc45ecd2271e3e4992e58d054 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Tue, 6 Oct 2020 17:20:32 +0200 Subject: [PATCH] Arch: import ifc, fix typo in material colors --- src/Mod/Arch/importIFC.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Arch/importIFC.py b/src/Mod/Arch/importIFC.py index 1f124a48d690..f873f4c5916e 100644 --- a/src/Mod/Arch/importIFC.py +++ b/src/Mod/Arch/importIFC.py @@ -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():