[ui] Sync feature points in Viewer2D enabled

This commit is contained in:
Aurore LAFAURIE 2024-04-05 12:07:01 +02:00 committed by Candice Bentéjac
parent 369143eca1
commit 2dd8392b4d
2 changed files with 3 additions and 1 deletions

View file

@ -52,6 +52,7 @@ Repeater {
/// Current view ID
property var currentViewId
property bool sync3DSelected: false
/// Time window
property bool enableTimeWindow: false
@ -75,7 +76,7 @@ Repeater {
matchColor: Colors.orange
landmarkColor: Colors.red
describerType: modelData
currentViewId: root.currentViewId
currentViewId: sync3DSelected ? _reconstruction.pickedViewId : root.currentViewId
enableTimeWindow: root.enableTimeWindow
timeWindow: root.timeWindow
mfeatures: root.features

View file

@ -586,6 +586,7 @@ FocusScope {
'features': Qt.binding(function() { return mfeaturesLoader.status === Loader.Ready ? mfeaturesLoader.item : null }),
'tracks': Qt.binding(function() { return mtracksLoader.status === Loader.Ready ? mtracksLoader.item : null }),
'sfmData': Qt.binding(function() { return msfmDataLoader.status === Loader.Ready ? msfmDataLoader.item : null }),
'sync3DSelected': Qt.binding(function() { return sequencePlayer.sync3DSelected }),
})
} else {
// Forcing the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14