mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-04 01:08:26 +02:00
[ui] SequencePlayer: improve playback
This commit is contained in:
parent
78625705a3
commit
522d838f32
1 changed files with 6 additions and 0 deletions
|
@ -55,6 +55,7 @@ FloatingPane {
|
|||
|
||||
onPlayingChanged: {
|
||||
syncSelected = !playing;
|
||||
viewer.playback(m.playing);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -82,6 +83,10 @@ FloatingPane {
|
|||
interval: 1000 / m.fps
|
||||
|
||||
onTriggered: {
|
||||
if (viewer.status !== Image.Ready) {
|
||||
// Wait for current image to be displayed before switching to next image
|
||||
return;
|
||||
}
|
||||
let nextIndex = m.frame + 1;
|
||||
if (nextIndex == sortedViewIds.length) {
|
||||
if (m.repeat) {
|
||||
|
@ -166,6 +171,7 @@ FloatingPane {
|
|||
stepSize: 1
|
||||
snapMode: Slider.SnapAlways
|
||||
live: true
|
||||
enabled: !m.playing
|
||||
|
||||
from: 0
|
||||
to: sortedViewIds.length - 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue