From 3b6e0a9342bd2d5de26fd858fa17cd6ec74dd326 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Tue, 6 Oct 2020 19:10:52 +0200 Subject: [PATCH] Arch: import ifc, small fix in colors --- src/Mod/Arch/importIFCHelper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Arch/importIFCHelper.py b/src/Mod/Arch/importIFCHelper.py index 99b5e98435..e2cc4a8442 100644 --- a/src/Mod/Arch/importIFCHelper.py +++ b/src/Mod/Arch/importIFCHelper.py @@ -445,9 +445,9 @@ def getColorFromStyledItem(styled_item): # print(ifcfile[p]) # print(styled_item) # print(styled_item.Styles) - if len(styled_item.Styles) == 1: + if len(styled_item.Styles) == 0: # IN IFC2x3, only one element in `Styles` should be available. - _wrn("More than one 'Style' in 'IfcStyleItem', do nothing.") + _wrn("No 'Style' in 'IfcStyleItem', do nothing.") # ca 100x in 210_King_Merged.ifc # Empty styles, #4952778=IfcStyledItem(#4952779,(),$) # this is an error in the IFC file in my opinion