By default the "Select container" button in the spatial decomposition panel clears current selection before selecting the container. Shift + Click adds the container to selection, ALT + Click removes the container from selection. Added tooltip to the button for keypresses.

This commit is contained in:
Gorgious56
2024-10-01 13:38:20 +02:00
parent a4ac71f9f7
commit c96c661394
4 changed files with 40 additions and 7 deletions
+4 -2
View File
@@ -101,8 +101,10 @@ def copy_to_container(
return result_objs
def select_container(ifc: tool.Ifc, spatial: tool.Spatial, container: ifcopenshell.entity_instance) -> None:
spatial.set_active_object(ifc.get_object(container))
def select_container(
ifc: tool.Ifc, spatial: tool.Spatial, container: ifcopenshell.entity_instance, selection_mode: str = "ADD"
) -> None:
spatial.set_active_object(ifc.get_object(container), selection_mode=selection_mode)
def select_similar_container(ifc: tool.Ifc, spatial: tool.Spatial, obj: bpy.types.Object) -> None: