From 37cacfcd06e290734c0e08ea54bffdc4218aa0b4 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sun, 26 May 2024 21:57:08 +1000 Subject: [PATCH] Fix #4728. Bug where changing class doesn't work with IfcCSV if it didn't need to change anything. --- src/ifcopenshell-python/ifcopenshell/util/selector.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ifcopenshell-python/ifcopenshell/util/selector.py b/src/ifcopenshell-python/ifcopenshell/util/selector.py index f66896bd53..7d2c3b5869 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/selector.py +++ b/src/ifcopenshell-python/ifcopenshell/util/selector.py @@ -371,6 +371,7 @@ def set_element_value( elif key == "class": if element.is_a().lower() != value.lower(): return ifcopenshell.util.schema.reassign_class(ifc_file, element, value) + return elif key == "id": return elif key == "classification":