From 74900193eef6c1b5c491596af12dc87f12eb0c1c Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 5 Mar 2025 16:43:05 +0500 Subject: [PATCH] merge_identical_objects to use quicker version of get_info --- src/bonsai/bonsai/tool/debug.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bonsai/bonsai/tool/debug.py b/src/bonsai/bonsai/tool/debug.py index 7752423ce4..b04280e1c8 100644 --- a/src/bonsai/bonsai/tool/debug.py +++ b/src/bonsai/bonsai/tool/debug.py @@ -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]] = {}