mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-30 19:40:31 -07:00
Fix +/- buttons on float sliders not working at certain values (#3865)
This commit is contained in:
parent
ed85a1b0e2
commit
f8b0e586bb
1 changed files with 1 additions and 1 deletions
|
@ -449,7 +449,7 @@ namespace UIWidgets {
|
|||
|
||||
if (changed && !(abs(oldVal - val) < 0.000001f)) {
|
||||
std::stringstream ss;
|
||||
ss << std::setprecision(ticks) << val;
|
||||
ss << std::setprecision(ticks + 1) << val;
|
||||
val = std::stof(ss.str());
|
||||
CVarSetFloat(cvarName, val);
|
||||
LUS::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesOnNextTick();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue