mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-25 05:57:18 +02:00
[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:
parent
b0063b0dde
commit
6e89cb68f6
2 changed files with 14 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue