Filter select entities in import_attributes

This commit is contained in:
Gorgious
2021-08-25 17:21:10 +02:00
parent 88e778374d
commit 7f84c2ea63
+1 -1
View File
@@ -53,7 +53,7 @@ def draw_attribute(attribute, layout, copy_operator=None):
def import_attributes(ifc_class, props, data, callback=None):
for attribute in IfcStore.get_schema().declaration_by_name(ifc_class).all_attributes():
data_type = ifcopenshell.util.attribute.get_primitive_type(attribute)
if isinstance(data_type, tuple) or data_type == "entity":
if isinstance(data_type, tuple) or data_type in ("entity", "select"):
callback(attribute.name(), None, data) if callback else None
continue
new = props.add()