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:
Cyril Waechter
2021-11-30 03:27:08 +01:00
committed by GitHub
parent a3f27830c5
commit 47a25ca8b9
+1 -1
View File
@@ -341,4 +341,4 @@ class BIMMeshProperties(PropertyGroup):
is_parametric: BoolProperty(name="Is Parametric", default=False)
ifc_definition: StringProperty(name="IFC Definition")
ifc_parameters: CollectionProperty(name="IFC Parameters", type=IfcParameter)
material_checksum: StringProperty(name="Material Checksum")
material_checksum: StringProperty(name="Material Checksum", default="[]")