mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
Add tooltip to CopyToContainer Operator
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user