mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix #1886.
This commit is contained in:
@@ -113,7 +113,10 @@ def get_layers(ifc_file, element):
|
||||
if subelement.is_a("IfcShapeRepresentation"):
|
||||
layers.extend(subelement.LayerAssignments or [])
|
||||
elif subelement.is_a("IfcGeometricRepresentationItem"):
|
||||
layers.extend(subelement.LayerAssignment or [])
|
||||
if ifc_file.schema == "IFC2X3":
|
||||
layers.extend(subelement.LayerAssignments or [])
|
||||
else:
|
||||
layers.extend(subelement.LayerAssignment or [])
|
||||
return layers
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user