From aec751b762ba8ae88c4282af5cd1a15209f4f55d Mon Sep 17 00:00:00 2001 From: Jordan McManus Date: Tue, 12 Mar 2024 08:49:12 -0400 Subject: [PATCH] changed type comparison to GlobalId --- src/ifcdiff/ifcdiff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcdiff/ifcdiff.py b/src/ifcdiff/ifcdiff.py index 2d973d0110..7abb29c0af 100755 --- a/src/ifcdiff/ifcdiff.py +++ b/src/ifcdiff/ifcdiff.py @@ -280,7 +280,7 @@ class IfcDiff: old_type = ifcopenshell.util.element.get_type(old) new_type = ifcopenshell.util.element.get_type(new) if old_type is not None and new_type is not None: - if old_type.get_info() != new_type.get_info(): + if old_type.GlobalId != new_type.GlobalId: self.change_register.setdefault(new.GlobalId, {}).update({"type_changed": True}) return True elif old_type != new_type: