mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
access layer assignments from inverse attribute instead of going through representation inverses
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user