Remove deprecated code for fixed bug #2002.

This commit is contained in:
Dion Moult
2024-09-18 21:08:31 +10:00
parent 0899a2a87b
commit ed530f737c
+1 -5
View File
@@ -91,11 +91,7 @@ class Loader(bonsai.core.tool.Loader):
mesh: tool.Geometry.TYPES_WITH_MESH_PROPERTIES,
) -> None:
geometry = shape.geometry if hasattr(shape, "geometry") else shape
if "-" in geometry.id:
mesh.BIMMeshProperties.ifc_definition_id = int(geometry.id.split("-")[0])
else:
# TODO: See #2002
mesh.BIMMeshProperties.ifc_definition_id = int(geometry.id.replace(",", ""))
mesh.BIMMeshProperties.ifc_definition_id = int(geometry.id.split("-")[0])
@classmethod
def create_surface_style_shading(cls, blender_material, surface_style):