Skip to content

Commit

Permalink
[Viewer3D] Connect any change of the selected view ID to the SfmDataL…
Browse files Browse the repository at this point in the history
…oader
  • Loading branch information
cbentejac committed Nov 17, 2023
1 parent df6d38f commit e4d0243
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions meshroom/ui/qml/Viewer3D/MediaLoader.qml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ import Utils 1.0
resectionId = Viewer3DSettings.resectionIdCount
root.status = obj.status;
})

obj.cameraSelected.connect(
function(viewId) {
obj.selectedViewId = viewId
}
)
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions meshroom/ui/qml/Viewer3D/SfmDataLoader.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4d0243

Please sign in to comment.