diff --git a/meshroom/ui/qml/Viewer3D/MediaLoader.qml b/meshroom/ui/qml/Viewer3D/MediaLoader.qml index ee6ba0046f..a716bcf5f0 100644 --- a/meshroom/ui/qml/Viewer3D/MediaLoader.qml +++ b/meshroom/ui/qml/Viewer3D/MediaLoader.qml @@ -117,6 +117,12 @@ import Utils 1.0 resectionId = Viewer3DSettings.resectionIdCount root.status = obj.status; }) + + obj.cameraSelected.connect( + function(viewId) { + obj.selectedViewId = viewId + } + ) } } } diff --git a/meshroom/ui/qml/Viewer3D/SfmDataLoader.qml b/meshroom/ui/qml/Viewer3D/SfmDataLoader.qml index 8dbaf33545..57e2b881b8 100644 --- a/meshroom/ui/qml/Viewer3D/SfmDataLoader.qml +++ b/meshroom/ui/qml/Viewer3D/SfmDataLoader.qml @@ -17,6 +17,13 @@ SfmDataEntity { signal cameraSelected(var viewId) + Connections { + target: _reconstruction + function onSelectedViewIdChanged() { + root.cameraSelected(_reconstruction.selectedViewId) + } + } + function spawnCameraSelectors() { var validCameras = 0; // spawn camera selector for each camera