mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 05:22:06 +00:00
Drawing cameras now save IfcBlock representations in IFC. See #1153.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user