mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
bug fix in constraint module, see #1549
This commit is contained in:
@@ -51,7 +51,7 @@ class EnableEditingConstraint(bpy.types.Operator):
|
|||||||
|
|
||||||
for attribute in IfcStore.get_schema().declaration_by_name(props.is_editing).all_attributes():
|
for attribute in IfcStore.get_schema().declaration_by_name(props.is_editing).all_attributes():
|
||||||
data_type = ifcopenshell.util.attribute.get_primitive_type(attribute)
|
data_type = ifcopenshell.util.attribute.get_primitive_type(attribute)
|
||||||
if data_type == "entity":
|
if data_type == "entity" or (isinstance(data_type, tuple) and "entity" in ".".join(data_type)):
|
||||||
continue
|
continue
|
||||||
new = props.constraint_attributes.add()
|
new = props.constraint_attributes.add()
|
||||||
new.name = attribute.name()
|
new.name = attribute.name()
|
||||||
|
|||||||
Reference in New Issue
Block a user