Minor style fixes

PiperOrigin-RevId: 872669434
Change-Id: I794173b9fad3a286cbf57d246b2f8672412a0e20
This commit is contained in:
Matija Kecman
2026-02-19 19:15:44 -08:00
committed by Copybara-Service
parent ca0552c83b
commit 8f56d5eefa
+2
View File
@@ -1584,6 +1584,7 @@ void UiEvent(mjuiState* state) {
// rendering section
else if (it && it->sectionid==SECT_RENDERING) {
// only update the camera when the camera itself changed
if (it->pdata == &sim->camera) {
if (sim->camera==0) {
@@ -1603,6 +1604,7 @@ void UiEvent(mjuiState* state) {
sim->cam.fixedcamid = sim->camera - 2;
}
}
// copy camera spec to clipboard (as MJCF element)
if (it->itemid == 3) {
CopyCamera(sim);