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:
Jake Turner
2025-01-02 09:44:54 +00:00
parent 5cda9752e0
commit f3bb7523b5
+1
View File
@@ -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,