Skip to content

Commit df7de6d

Browse files
authored
Merge pull request #2237 from alicevision/dev/highlightSelectedCamera
[Viewer3D] Connect any change of the selected view ID to the SfmDataLoader
2 parents 978a4df + e4d0243 commit df7de6d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

meshroom/ui/qml/Viewer3D/MediaLoader.qml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ import Utils 1.0
117117
resectionId = Viewer3DSettings.resectionIdCount
118118
root.status = obj.status;
119119
})
120+
121+
obj.cameraSelected.connect(
122+
function(viewId) {
123+
obj.selectedViewId = viewId
124+
}
125+
)
120126
}
121127
}
122128
}

meshroom/ui/qml/Viewer3D/SfmDataLoader.qml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ SfmDataEntity {
1717

1818
signal cameraSelected(var viewId)
1919

20+
Connections {
21+
target: _reconstruction
22+
function onSelectedViewIdChanged() {
23+
root.cameraSelected(_reconstruction.selectedViewId)
24+
}
25+
}
26+
2027
function spawnCameraSelectors() {
2128
var validCameras = 0;
2229
// spawn camera selector for each camera

0 commit comments

Comments
 (0)