mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +00:00
Fix #1679
This commit is contained in:
@@ -164,7 +164,7 @@ class EnableEditingStructuralBoundaryCondition(bpy.types.Operator):
|
|||||||
new.name = attribute.name()
|
new.name = attribute.name()
|
||||||
new.is_null = value is None
|
new.is_null = value is None
|
||||||
new.is_optional = attribute.optional()
|
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)]
|
enum_items = [s.name() for s in ifcopenshell.util.attribute.get_select_items(attribute)]
|
||||||
new.enum_items = json.dumps(enum_items)
|
new.enum_items = json.dumps(enum_items)
|
||||||
if isinstance(value, bool):
|
if isinstance(value, bool):
|
||||||
|
|||||||
Reference in New Issue
Block a user