mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 17:36:36 +00:00
Reset the controlType current index to 0 in the BufferViewer constructor
This keeps the UI display in sync with the code internal settings for camera choice i.e. FlyCam/ArcBall. During the constructor, the UI setup for the different axis mappings will call on_resetCamera_clicked() and that can change the controlType current index value to be different from the expected/desired default value of 0. Closes#3509
This commit is contained in:
@@ -2564,6 +2564,7 @@ BufferViewer::BufferViewer(ICaptureContext &ctx, bool meshview, QWidget *parent)
|
||||
|
||||
ui->fovGuess->setValue(90.0);
|
||||
|
||||
ui->controlType->setCurrentIndex(0);
|
||||
on_controlType_currentIndexChanged(0);
|
||||
|
||||
QObject::connect(ui->inTable->selectionModel(), &QItemSelectionModel::selectionChanged, this,
|
||||
|
||||
Reference in New Issue
Block a user