Bonsai - fix loading ifcsqlite file after 497542d #7085

This commit is contained in:
Andrej730
2025-09-04 19:06:20 +05:00
parent 49b9f99557
commit 942cb586b2
3 changed files with 11 additions and 11 deletions
@@ -692,7 +692,8 @@ def calculate_unit_scale(ifc_file: ifcopenshell.file, unit_type: str = "LENGTHUN
:returns: The scale factor
"""
if (
unit_type
type(ifc_file) is ifcopenshell.file
and unit_type
not in ifcopenshell.ifcopenshell_wrapper.schema_by_name(ifc_file.schema_identifier)
.declaration_by_name("IfcUnitEnum")
.enumeration_items()