[Viewer3D] Connect any change of the selected view ID to the SfmDataLoader

This commit is contained in:
Candice Bentéjac 2023-10-31 17:47:38 +01:00
parent df6d38f391
commit e4d0243e3c
2 changed files with 13 additions and 0 deletions

View file

@ -117,6 +117,12 @@ import Utils 1.0
resectionId = Viewer3DSettings.resectionIdCount
root.status = obj.status;
})
obj.cameraSelected.connect(
function(viewId) {
obj.selectedViewId = viewId
}
)
}
}
}

View file

@ -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