[Viewer] Fix of side effects from output sequence in SequencePlayer

Unsync 3D Viewer and SequencePlayer if it is output sequence and set to 0 the frame displayed when changing sequence
This commit is contained in:
Aurore LAFAURIE 2024-04-19 10:43:38 +02:00
parent b0063b0dde
commit 6e89cb68f6
2 changed files with 14 additions and 7 deletions

View file

@ -23,6 +23,7 @@ FloatingPane {
// Exposed properties
property var sortedViewIds: []
property var viewer: null
property bool isOutputSequence: false
readonly property alias sync3DSelected: m.sync3DSelected
readonly property alias syncFeaturesSelected: m.syncFeaturesSelected
property bool loading: fetchButton.checked || m.playing
@ -35,6 +36,8 @@ FloatingPane {
}
function updateReconstructionView() {
if (isOutputSequence)
return
if (_reconstruction && m.frame >= 0 && m.frame < sortedViewIds.length) {
if (!m.playing && !frameSlider.pressed){
_reconstruction.selectedViewId = sortedViewIds[m.frame];
@ -47,6 +50,12 @@ FloatingPane {
}
}
onIsOutputSequenceChanged: {
if (!isOutputSequence) {
frameId = 0
}
}
// Sequence player model:
// - current frame
// - data related to automatic sequence playing