Skip to content

Commit

Permalink
Merge pull request #2197 from alicevision/dev/sequencePlayer/minorUpd…
Browse files Browse the repository at this point in the history
…ateFps

[ui] SequencePlayer: minor adjustments (fps, icon, play)
  • Loading branch information
cbentejac authored Sep 22, 2023
2 parents 5654df8 + 191663f commit 94c035b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions meshroom/ui/qml/Viewer/SequencePlayer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ FloatingPane {
property bool syncSelected: true
property bool playing: false
property bool repeat: false
property real fps: 1
property real fps: 24

onFrameChanged: {
updateReconstructionView();
Expand All @@ -55,7 +55,11 @@ FloatingPane {

onPlayingChanged: {
syncSelected = !playing;
viewer.playback(m.playing);
if(playing && (frame + 1 >= sortedViewIds.length))
{
frame = 0;
}
viewer.playback(playing);
}
}

Expand Down Expand Up @@ -231,6 +235,7 @@ FloatingPane {
from: 1
to: 60
stepSize: 1
value: m.fps

onValueChanged: {
m.fps = value;
Expand All @@ -243,7 +248,7 @@ FloatingPane {

checkable: true
checked: false
text: MaterialIcons.replay
text: MaterialIcons.repeat
ToolTip.text: "Repeat"

onCheckedChanged: {
Expand Down

0 comments on commit 94c035b

Please sign in to comment.