From e0218ed9f94d25edc6272c3639e5e639bbe4611f Mon Sep 17 00:00:00 2001 From: TheNumbat Date: Fri, 23 Apr 2021 11:53:17 -0700 Subject: [PATCH] limit particle scale to 0.01 --- src/gui/manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/manager.cpp b/src/gui/manager.cpp index 4b3b228..8c2a065 100644 --- a/src/gui/manager.cpp +++ b/src/gui/manager.cpp @@ -231,7 +231,7 @@ void Manager::particles_edit_gui(Undo& undo, Scene_Particles& particles) { activate(); ImGui::SliderFloat("Angle", &opt.angle, 0.0f, 180.0f, "%.2f"); activate(); - ImGui::DragFloat("Scale", &opt.scale, 0.01f, 0.0f, std::numeric_limits::max(), "%.2f"); + ImGui::DragFloat("Scale", &opt.scale, 0.01f, 0.01f, std::numeric_limits::max(), "%.2f"); activate(); ImGui::DragFloat("Lifetime", &opt.lifetime, 0.01f, 0.0f, std::numeric_limits::max(), "%.2f"); -- GitLab