Fix segfault from editing a IFC2X3 georeferencing pset with a null map unit.

Doing createIfcIdentifier(None) segfaults.
This commit is contained in:
Dion Moult
2025-02-05 14:10:04 +11:00
parent ae11f205f3
commit e86624873b
@@ -90,7 +90,7 @@ def edit_georeferencing(
v = file.createIfcText(v)
elif k == "Name":
v = file.createIfcLabel(v)
else:
elif v is not None:
v = file.createIfcIdentifier(v)
ifcopenshell.api.pset.edit_pset(file, crs, properties=projected_crs)
if coordinate_operation: