From 47a25ca8b9442f8dbac0aea506856c26a57f6e80 Mon Sep 17 00:00:00 2001 From: Cyril Waechter Date: Tue, 30 Nov 2021 03:27:08 +0100 Subject: [PATCH] Prevent crash on export for obj with no material (#1903) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/blenderbim/blenderbim/bim/prop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/bim/prop.py b/src/blenderbim/blenderbim/bim/prop.py index 8f8928f545..1106f59212 100644 --- a/src/blenderbim/blenderbim/bim/prop.py +++ b/src/blenderbim/blenderbim/bim/prop.py @@ -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="[]")