mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-04 20:56:50 +02:00
[Viewer3D] Connect any change of the selected view ID to the SfmDataLoader
This commit is contained in:
parent
df6d38f391
commit
e4d0243e3c
2 changed files with 13 additions and 0 deletions
|
@ -117,6 +117,12 @@ import Utils 1.0
|
||||||
resectionId = Viewer3DSettings.resectionIdCount
|
resectionId = Viewer3DSettings.resectionIdCount
|
||||||
root.status = obj.status;
|
root.status = obj.status;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
obj.cameraSelected.connect(
|
||||||
|
function(viewId) {
|
||||||
|
obj.selectedViewId = viewId
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,13 @@ SfmDataEntity {
|
||||||
|
|
||||||
signal cameraSelected(var viewId)
|
signal cameraSelected(var viewId)
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: _reconstruction
|
||||||
|
function onSelectedViewIdChanged() {
|
||||||
|
root.cameraSelected(_reconstruction.selectedViewId)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function spawnCameraSelectors() {
|
function spawnCameraSelectors() {
|
||||||
var validCameras = 0;
|
var validCameras = 0;
|
||||||
// spawn camera selector for each camera
|
// spawn camera selector for each camera
|
||||||
|
|
Loading…
Add table
Reference in a new issue