Allow "none" geometry types for objects with no body representation

This commit is contained in:
Dion Moult
2020-07-18 13:11:13 +10:00
parent 11472f9aa9
commit ab432ba3dd
@@ -1824,7 +1824,7 @@ class IfcImporter():
ios_materials.append(mat.name)
mesh['ios_materials'] = ios_materials
mesh['ios_material_ids'] = geometry.material_ids
mesh.BIMMeshProperties.geometry_type = self.get_geometry_type(element)
mesh.BIMMeshProperties.geometry_type = str(self.get_geometry_type(element))
return mesh
except:
self.ifc_import_settings.logger.error('Could not create mesh for {}'.format(element))