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 Oct 31, 2023
1 parent f35203a commit 9dedc43
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 @@ -110,6 +110,12 @@ import Utils 1.0
}
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 9dedc43

Please sign in to comment.