Skip to content

Commit

Permalink
simulate: Add states to history when stepping with right arrow key.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 585613870
Change-Id: I7fb051946e8a91a900442e3d7048dfa8b8bd7c5c
  • Loading branch information
yuvaltassa authored and copybara-github committed Nov 27, 2023
1 parent eb9568a commit 25ddb3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simulate/simulate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1566,9 +1566,10 @@ void UiEvent(mjuiState* state) {
mjui0_update_section(sim, SECT_SIMULATION);
}

// not in scrubber: step
// not in scrubber: step, add to history buffer
else {
mj_step(sim->m_, sim->d_);
sim->AddToHistory();
}

UpdateProfiler(sim, sim->m_, sim->d_);
Expand Down

0 comments on commit 25ddb3e

Please sign in to comment.