mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 10:51:13 +00:00
Prevent crash on export for obj with no material (#1903)
During export material_checksum was always checked against a stringed list `'[]'` for an empty material while default value for material_checksum default was `''`. So it was trying to update material of object which have none (eg. IfcRelSpaceBoundary). See: https://github.com/IfcOpenShell/IfcOpenShell/blob/a3f27830c579e567218f79faa52dfc941a441241/src/blenderbim/blenderbim/bim/export_ifc.py#L147
This commit is contained in:
@@ -341,4 +341,4 @@ class BIMMeshProperties(PropertyGroup):
|
|||||||
is_parametric: BoolProperty(name="Is Parametric", default=False)
|
is_parametric: BoolProperty(name="Is Parametric", default=False)
|
||||||
ifc_definition: StringProperty(name="IFC Definition")
|
ifc_definition: StringProperty(name="IFC Definition")
|
||||||
ifc_parameters: CollectionProperty(name="IFC Parameters", type=IfcParameter)
|
ifc_parameters: CollectionProperty(name="IFC Parameters", type=IfcParameter)
|
||||||
material_checksum: StringProperty(name="Material Checksum")
|
material_checksum: StringProperty(name="Material Checksum", default="[]")
|
||||||
|
|||||||
Reference in New Issue
Block a user