From 8f56d5eefa00e5e41b2fa72d01bcf0e7ff3530d2 Mon Sep 17 00:00:00 2001 From: Matija Kecman Date: Thu, 19 Feb 2026 19:15:44 -0800 Subject: [PATCH] Minor style fixes PiperOrigin-RevId: 872669434 Change-Id: I794173b9fad3a286cbf57d246b2f8672412a0e20 --- simulate/simulate.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/simulate/simulate.cc b/simulate/simulate.cc index be7318c5..022b9842 100644 --- a/simulate/simulate.cc +++ b/simulate/simulate.cc @@ -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);