Skip to content

Commit

Permalink
Fix debug assertion in SimulationScrubber
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Jan 16, 2025
1 parent a9b7287 commit 5d1ec2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libOpenSimCreator/UI/Simulation/SimulationScrubber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ class osc::SimulationScrubber::Impl final {
{
ui::set_next_item_width(ui::calc_text_size("0.000x").x + 2.0f*ui::get_style_frame_padding().x);
float speed = m_SimulatorAPI->getSimulationPlaybackSpeed();
if (ui::draw_float_input("speed", &speed, 0.0f, 0.0f, "%.3f", ui::TextInputFlag::EnterReturnsTrue)) {
ui::draw_float_input("speed", &speed, 0.0f, 0.0f, "%.3f");
if (ui::is_item_deactivated_after_edit()) {
m_SimulatorAPI->setSimulationPlaybackSpeed(speed);
}
}
Expand Down

0 comments on commit 5d1ec2b

Please sign in to comment.