merge_identical_objects to use quicker version of get_info

This commit is contained in:
Andrej730
2025-03-05 16:43:05 +05:00
parent 2987d38a31
commit 74900193ee
+1 -2
View File
@@ -120,8 +120,7 @@ class Debug(bonsai.core.tool.Debug):
"""
def get_hash(element: ifcopenshell.entity_instance) -> int:
# TODO: replace with get_info_2 after bonsai build update.
return hash(json.dumps(element.get_info(include_identifier=False, recursive=True), sort_keys=True))
return hash(json.dumps(element.get_info_2(include_identifier=False, recursive=True), sort_keys=True))
ifc_file = tool.Ifc.get()
merged_element_types: dict[str, list[str]] = {}