Commit e0218ed9 authored by TheNumbat's avatar TheNumbat
Browse files

limit particle scale to 0.01

parent ff03db83
......@@ -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<float>::max(), "%.2f");
ImGui::DragFloat("Scale", &opt.scale, 0.01f, 0.01f, std::numeric_limits<float>::max(), "%.2f");
activate();
ImGui::DragFloat("Lifetime", &opt.lifetime, 0.01f, 0.0f, std::numeric_limits<float>::max(),
"%.2f");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment