mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 02:08:08 +02:00
Add sync button to SequencePlayer
Synchronisation available for ImageGallery, SequencePlayer and Viewer3D
This commit is contained in:
parent
f79021fa54
commit
ca4f7f13e5
1 changed files with 17 additions and 1 deletions
|
@ -54,7 +54,7 @@ FloatingPane {
|
|||
}
|
||||
|
||||
onPlayingChanged: {
|
||||
syncSelected = !playing;
|
||||
syncSelected = syncButton.checked || !playing;
|
||||
if(playing && (frame + 1 >= sortedViewIds.length))
|
||||
{
|
||||
frame = 0;
|
||||
|
@ -255,6 +255,22 @@ FloatingPane {
|
|||
m.repeat = checked;
|
||||
}
|
||||
}
|
||||
|
||||
MaterialToolButton {
|
||||
id: syncButton
|
||||
|
||||
checkable: true
|
||||
checked: false
|
||||
text: MaterialIcons.sync
|
||||
ToolTip.text: "Sync Viewers and Sequence Player"
|
||||
|
||||
onCheckedChanged: {
|
||||
// if playing, update the syncSelected property
|
||||
if (m.playing) {
|
||||
m.syncSelected = checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TextMetrics {
|
||||
|
|
Loading…
Add table
Reference in a new issue