mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:03:46 +00:00
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:
@@ -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"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user