From 8178dd330d60da63cbe9fb87c8af2786f075104a Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sun, 22 Aug 2021 10:53:43 +1000 Subject: [PATCH] Fix #1679 --- src/blenderbim/blenderbim/bim/module/structural/operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/bim/module/structural/operator.py b/src/blenderbim/blenderbim/bim/module/structural/operator.py index afc0194e60..5bb3e1469b 100644 --- a/src/blenderbim/blenderbim/bim/module/structural/operator.py +++ b/src/blenderbim/blenderbim/bim/module/structural/operator.py @@ -164,7 +164,7 @@ class EnableEditingStructuralBoundaryCondition(bpy.types.Operator): new.name = attribute.name() new.is_null = value is None new.is_optional = attribute.optional() - if data_type == "select": + if isinstance(data_type, tuple) and data_type[0] == "select": enum_items = [s.name() for s in ifcopenshell.util.attribute.get_select_items(attribute)] new.enum_items = json.dumps(enum_items) if isinstance(value, bool):