mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-29 22:47:17 +02:00
[ui] Sync Viewer3D according to updateSelectedViewpoint
This commit is contained in:
parent
ca4f7f13e5
commit
5afb9cb2c8
2 changed files with 28 additions and 1 deletions
|
@ -29,6 +29,9 @@ FloatingPane {
|
|||
_reconstruction.selectedViewId = sortedViewIds[m.frame];
|
||||
} else {
|
||||
_reconstruction.pickedViewId = sortedViewIds[m.frame];
|
||||
if (m.sync3DSelected) {
|
||||
_reconstruction.updateSelectedViewpoint(_reconstruction.pickedViewId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -41,6 +44,7 @@ FloatingPane {
|
|||
|
||||
property int frame: 0
|
||||
property bool syncSelected: true
|
||||
property bool sync3DSelected: false
|
||||
property bool playing: false
|
||||
property bool repeat: false
|
||||
property real fps: 24
|
||||
|
@ -271,6 +275,19 @@ FloatingPane {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
MaterialToolButton {
|
||||
id: sync3DButton
|
||||
|
||||
checkable: true
|
||||
checked: false
|
||||
text: MaterialIcons.sync_alt
|
||||
ToolTip.text: "Sync 3D Viewer and Sequence Player"
|
||||
|
||||
onCheckedChanged: {
|
||||
m.sync3DSelected = checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TextMetrics {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue