Add tooltip to CopyToContainer Operator

This commit is contained in:
Gorgious
2021-08-19 21:26:54 +02:00
parent bf6c3e40d3
commit 17e61afd59
@@ -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: