Skip to content

Commit 068e9fa

Browse files
committed
[ui] DelegateSelectionBox: Fetch children indices when box selecting backdrops
This allows selecting children explicitly during this call rather than implicitly invoking select children which was inducing a binding loop on selection property
1 parent f3b5d7d commit 068e9fa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

meshroom/ui/qml/Controls/DelegateSelectionBox.qml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ SelectionBox {
2525
const delegateRect = Qt.rect(delegate.x, delegate.y, delegate.width, delegate.height);
2626
if (Geom2D.rectRectIntersect(mappedSelectionRect, delegateRect)) {
2727
selectedIndices.push(i);
28+
29+
// Check if the node is a backdrop
30+
// If so add all of it's children indices as well
31+
if (delegate.isBackdrop) {
32+
let children = delegate.getChildrenIndices(true);
33+
for (var c = 0; c < children.length; c++) {
34+
selectedIndices.push(children[c]);
35+
}
36+
}
2837
}
2938
}
3039
delegateSelectionEnded(selectedIndices, modifiers);

0 commit comments

Comments
 (0)