Drawing cameras now save IfcBlock representations in IFC. See #1153.

This commit is contained in:
Dion Moult
2021-03-04 22:04:40 +11:00
parent d2d4a1b976
commit 29f64f7c11
6 changed files with 91 additions and 32 deletions
@@ -93,7 +93,7 @@ class AssignClass(bpy.types.Operator):
elif self.predefined_type == "":
predefined_type = None
for obj in objects:
if obj.data:
if obj.data and hasattr(obj.data, "materials"):
for material in obj.data.materials:
if not material.BIMMaterialProperties.ifc_style_id:
bpy.ops.bim.add_style(material=material.name)