Skip to content

Commit 02c9d79

Browse files
committed
Reset the controlType current index to 0 in 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 differnt from the expected/desired value of 0. Closes#3509
1 parent b23000d commit 02c9d79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qrenderdoc/Windows/BufferViewer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2564,6 +2564,7 @@ BufferViewer::BufferViewer(ICaptureContext &ctx, bool meshview, QWidget *parent)
25642564

25652565
ui->fovGuess->setValue(90.0);
25662566

2567+
ui->controlType->setCurrentIndex(0);
25672568
on_controlType_currentIndexChanged(0);
25682569

25692570
QObject::connect(ui->inTable->selectionModel(), &QItemSelectionModel::selectionChanged, this,

0 commit comments

Comments
 (0)