Fix create_shape() overloads because SWIG does not map None for us anymore

This commit is contained in:
Thomas Krijnen
2026-01-13 08:44:30 +01:00
parent 07a01bcf54
commit 7e5248da29
2 changed files with 7 additions and 2 deletions
@@ -507,7 +507,7 @@ def create_shape(
"""
return wrap_shape_creation(
settings,
ifcopenshell_wrapper.create_shape(settings, inst, repr if repr is not None else None, geometry_library),
ifcopenshell_wrapper.create_shape(settings, inst, repr, geometry_library) if repr else ifcopenshell_wrapper.create_shape(settings, inst, geometry_library),
)