Fix camera select logic.
PiperOrigin-RevId: 858599199 Change-Id: I25f1a74ac145c73bb225d6df8e86aa82d88ebb4b
This commit is contained in:
committed by
Copybara-Service
parent
23c56ec4bb
commit
a0accc493a
@@ -1272,7 +1272,7 @@ void App::ToolBarGui() {
|
|||||||
for (int n = 0; n < cameras.size(); n++) {
|
for (int n = 0; n < cameras.size(); n++) {
|
||||||
if (ImGui::Selectable(cameras[n], (camera_idx == n))) {
|
if (ImGui::Selectable(cameras[n], (camera_idx == n))) {
|
||||||
ui_.camera_idx = platform::SetCamera(
|
ui_.camera_idx = platform::SetCamera(
|
||||||
model_, &camera_, camera_idx + platform::kTumbleCameraIdx);
|
model_, &camera_, n + platform::kTumbleCameraIdx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::EndCombo();
|
ImGui::EndCombo();
|
||||||
|
|||||||
Reference in New Issue
Block a user