IfcImporter.create_generic_elements - prevent argument mutation

as it may have unexpected consequences
This commit is contained in:
Andrej730
2025-05-13 17:21:04 +05:00
parent 0ef3983035
commit 9991c4aa56
+1
View File
@@ -596,6 +596,7 @@ class IfcImporter:
return self.create_generic_sqlite_elements(elements)
if self.ifc_import_settings.should_load_geometry:
elements = elements.copy() # Prevent argument mutation.
context_settings = (
tool.Loader.settings.gross_context_settings if is_gross else tool.Loader.settings.context_settings
)