layer.unassign_layer - support batching #4474

This commit is contained in:
Andrej730
2024-04-08 14:45:47 +05:00
parent 7ecec973dd
commit abe6dbdfc9
3 changed files with 68 additions and 10 deletions
@@ -176,7 +176,10 @@ class UnassignPresentationLayer(bpy.types.Operator):
ifcopenshell.api.run(
"layer.unassign_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"}