Skip to content

Commit

Permalink
Reset the controlType current index to 0 in BufferViewer constructor
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Zorro666 committed Jan 1, 2025
1 parent b23000d commit 02c9d79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qrenderdoc/Windows/BufferViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 02c9d79

Please sign in to comment.