mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +02:00
Merge pull request #2237 from alicevision/dev/highlightSelectedCamera
[Viewer3D] Connect any change of the selected view ID to the SfmDataLoader
This commit is contained in:
commit
df7de6d9c7
2 changed files with 13 additions and 0 deletions
|
@ -117,6 +117,12 @@ import Utils 1.0
|
|||
resectionId = Viewer3DSettings.resectionIdCount
|
||||
root.status = obj.status;
|
||||
})
|
||||
|
||||
obj.cameraSelected.connect(
|
||||
function(viewId) {
|
||||
obj.selectedViewId = viewId
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue