mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 08:18:25 +02:00
[ui] Additive mode for select following Nodes
Implement additive selection behavior when selecting downstream nodes from a node, using Alt+Shift+Click.
This commit is contained in:
parent
4730cc0800
commit
944ff15002
2 changed files with 11 additions and 3 deletions
|
@ -864,7 +864,12 @@ Item {
|
|||
selectionMode = ItemSelectionModel.Toggle;
|
||||
}
|
||||
if(mouse.modifiers & Qt.AltModifier) {
|
||||
uigraph.selectFollowing(node);
|
||||
let selectFollowingMode = ItemSelectionModel.ClearAndSelect;
|
||||
if(mouse.modifiers & Qt.ShiftModifier) {
|
||||
selectFollowingMode = ItemSelectionModel.Select;
|
||||
}
|
||||
uigraph.selectFollowing(node, selectFollowingMode);
|
||||
// Indicate selection has been dealt with by setting conservative Select mode.
|
||||
selectionMode = ItemSelectionModel.Select;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue