Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ui] SequencePlayer: minor adjustments (fps, icon, play) #2197

Merged
merged 3 commits into from
Sep 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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