[ui] drag&drop: common behavior for graph editor and image gallery

In Image Gallery :
- drop 1 .mg open the scene
- drop images either create new camera or augment the reconstruction

In Graph Editor :
- drop 1 .mg open the scene
- drop images create new camera at position of mouse
This commit is contained in:
Aurore LAFAURIE 2024-03-20 17:05:28 +01:00
parent bb9661a141
commit 67fbf1b00f
5 changed files with 88 additions and 19 deletions

View file

@ -80,7 +80,9 @@ Item {
cameraInitIndex: reconstruction ? reconstruction.cameraInitIndex : -1
onRemoveImageRequest: reconstruction.removeAttribute(attribute)
onAllViewpointsCleared: { reconstruction.removeAllImages(); reconstruction.selectedViewId = "-1" }
onFilesDropped: reconstruction.handleFilesDrop(drop, augmentSfm ? null : cameraInit)
onFilesDropped: {
reconstruction.handleFilesUrl(drop.urls, augmentSfm ? null : cameraInit)
}
}
LiveSfmView {
visible: settings_UILayout.showLiveReconstruction