SceneSetSelectionTask
construct.scene.set_selection — write the selection the tree and the viewport show (scene-tree-ux-v3 §STG-O-2).
| Inherits | construct::opal::ConstructMutationTask |
In the namespace construct::opal. Declared in src/libs/libconstruct/construct/opal/SceneSetSelectionTask.hpp.
Detailed description
The selection could be read (construct.scene.get_selection) and not written, for no reason other than that nobody wrote the setter. A model that found an item with construct.scene.search_items could not show it to the engineer without asking for a click first.
Selection is model state: a per-instance tag, written here through the same panel adapter a tree click uses, so the logical scene and the document agree and the compiler's selection pass keeps it. The scope is `mutate` although no geometry changes, because the selection decides what the next Delete removes. Clearing is this task with an empty list; there is no separate clear task.