Remove unneeded mjvScene argument from mjv_moveCamera.

PiperOrigin-RevId: 948204736
Change-Id: Ic9b116ce439b3153764af67c449a824aec1994dc
This commit is contained in:
Haroon Qureshi
2026-07-15 02:25:31 -07:00
committed by Copybara-Service
parent 6c78c8664e
commit fa36015bae
10 changed files with 32 additions and 25 deletions
+2 -3
View File
@@ -2033,7 +2033,7 @@ void UiEvent(mjuiState* state) {
// 3D scroll
if (state->type==mjEVENT_SCROLL && state->mouserect==3 && model) {
// emulate vertical mouse motion = 2% of window height
mjv_moveCamera(model, mjMOUSE_ZOOM, 0, -zoom_increment*state->sy, &sim->scn, &sim->cam);
mjv_moveCamera(model, mjMOUSE_ZOOM, 0, -zoom_increment*state->sy, &sim->cam);
return;
}
@@ -2092,8 +2092,7 @@ void UiEvent(mjuiState* state) {
mjv_movePerturb(model, data, action, state->dx / r.height, -state->dy / r.height,
&sim->scn, &sim->pert);
} else {
mjv_moveCamera(model, action, state->dx / r.height, -state->dy / r.height,
&sim->scn, &sim->cam);
mjv_moveCamera(model, action, state->dx / r.height, -state->dy / r.height, &sim->cam);
}
return;
}