layer.assign_layer - support batching #4474

This commit is contained in:
Andrej730
2024-04-08 14:30:30 +05:00
parent f34aef1ebf
commit 7ecec973dd
6 changed files with 68 additions and 20 deletions
@@ -151,7 +151,10 @@ class AssignPresentationLayer(bpy.types.Operator):
ifcopenshell.api.run(
"layer.assign_layer",
self.file,
**{"item": self.file.by_id(item.BIMMeshProperties.ifc_definition_id), "layer": self.file.by_id(self.layer)}
**{
"items": [self.file.by_id(item.BIMMeshProperties.ifc_definition_id)],
"layer": self.file.by_id(self.layer),
}
)
return {"FINISHED"}