From 17e61afd59804d34daf91f8720444d9b5db0362a Mon Sep 17 00:00:00 2001 From: Gorgious Date: Thu, 19 Aug 2021 21:26:54 +0200 Subject: [PATCH] Add tooltip to CopyToContainer Operator --- src/blenderbim/blenderbim/bim/module/spatial/operator.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/bim/module/spatial/operator.py b/src/blenderbim/blenderbim/bim/module/spatial/operator.py index e10939a59f..a6eb84ddbd 100644 --- a/src/blenderbim/blenderbim/bim/module/spatial/operator.py +++ b/src/blenderbim/blenderbim/bim/module/spatial/operator.py @@ -162,6 +162,11 @@ class RemoveContainer(bpy.types.Operator): class CopyToContainer(bpy.types.Operator): + """ + Copies selected objects to selected containers + Check the mark next to a container in the container list to select it + Several containers can be selected at a time + """ bl_idname = "bim.copy_to_container" bl_label = "Copy To Container" bl_options = {"REGISTER", "UNDO"} @@ -172,7 +177,7 @@ class CopyToContainer(bpy.types.Operator): def _execute(self, context): self.file = IfcStore.get_file() - objects = [bpy.data.objects.get(self.obj)] if self.obj else context.selected_objects + objects = list(bpy.data.objects.get(self.obj, context.selected_objects)) sprops = context.scene.BIMSpatialProperties container_ids = [c.ifc_definition_id for c in sprops.spatial_elements if c.is_selected] for obj in objects: