mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Fix #4728. Bug where changing class doesn't work with IfcCSV if it didn't need to change anything.
This commit is contained in:
@@ -371,6 +371,7 @@ def set_element_value(
|
|||||||
elif key == "class":
|
elif key == "class":
|
||||||
if element.is_a().lower() != value.lower():
|
if element.is_a().lower() != value.lower():
|
||||||
return ifcopenshell.util.schema.reassign_class(ifc_file, element, value)
|
return ifcopenshell.util.schema.reassign_class(ifc_file, element, value)
|
||||||
|
return
|
||||||
elif key == "id":
|
elif key == "id":
|
||||||
return
|
return
|
||||||
elif key == "classification":
|
elif key == "classification":
|
||||||
|
|||||||
Reference in New Issue
Block a user