WIP partial port of IfcPerson to partial editing. New feature too! See message. See #1222.

* Previously, IfcPerson was not imported. Now it is! Funky.
This commit is contained in:
Dion Moult
2021-01-08 16:27:19 +11:00
parent 53de93e582
commit be2ea335f5
14 changed files with 249 additions and 69 deletions
@@ -86,6 +86,10 @@ class AssignClass(bpy.types.Operator):
elif self.predefined_type == "":
predefined_type = None
for obj in objects:
if obj.data:
for material in obj.data.materials:
if not material.BIMMaterialProperties.ifc_style_id:
bpy.ops.bim.add_style(material=material.name)
self.assign_class(obj)
return {"FINISHED"}