access layer assignments from inverse attribute instead of going through representation inverses

This commit is contained in:
Andrej730
2024-01-30 11:28:11 +05:00
parent fd48196bcb
commit 8091b25fcd
2 changed files with 4 additions and 6 deletions
@@ -47,7 +47,6 @@ class LayersData:
return []
results = []
shape = tool.Ifc.get().by_id(data.BIMMeshProperties.ifc_definition_id)
for inverse in tool.Ifc.get().get_inverse(shape):
if inverse.is_a("IfcPresentationLayerAssignment"):
results.append(inverse.id())
for inverse in shape.LayerAssignments:
results.append(inverse.id())
return results