mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 12:22:37 +00:00
Fix bug where you couldn't add a presentation layer
This commit is contained in:
@@ -47,7 +47,7 @@ class EnableEditingLayer(bpy.types.Operator):
|
|||||||
|
|
||||||
for attribute in IfcStore.get_schema().declaration_by_name("IfcPresentationLayerAssignment").all_attributes():
|
for attribute in IfcStore.get_schema().declaration_by_name("IfcPresentationLayerAssignment").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 data_type == "select":
|
||||||
continue
|
continue
|
||||||
new = props.layer_attributes.add()
|
new = props.layer_attributes.add()
|
||||||
new.name = attribute.name()
|
new.name = attribute.name()
|
||||||
|
|||||||
Reference in New Issue
Block a user