mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Fix segfault from editing a IFC2X3 georeferencing pset with a null map unit.
Doing createIfcIdentifier(None) segfaults.
This commit is contained in:
@@ -90,7 +90,7 @@ def edit_georeferencing(
|
|||||||
v = file.createIfcText(v)
|
v = file.createIfcText(v)
|
||||||
elif k == "Name":
|
elif k == "Name":
|
||||||
v = file.createIfcLabel(v)
|
v = file.createIfcLabel(v)
|
||||||
else:
|
elif v is not None:
|
||||||
v = file.createIfcIdentifier(v)
|
v = file.createIfcIdentifier(v)
|
||||||
ifcopenshell.api.pset.edit_pset(file, crs, properties=projected_crs)
|
ifcopenshell.api.pset.edit_pset(file, crs, properties=projected_crs)
|
||||||
if coordinate_operation:
|
if coordinate_operation:
|
||||||
|
|||||||
Reference in New Issue
Block a user