Fix Migrate not migrating ifc file header #5903

This commit is contained in:
Andrej730
2024-12-23 12:33:28 +05:00
parent d0e2995a84
commit 6edc6cec71
2 changed files with 30 additions and 0 deletions
@@ -312,6 +312,7 @@ class Migrator:
}
def preprocess(self, old_file: ifcopenshell.file, new_file: ifcopenshell.file) -> None:
new_file.assign_header_from(old_file)
to_delete = set()
if old_file.schema == "IFC2X3" and new_file.schema == "IFC4":