use “1” as small-step for integer controls.

This commit is contained in:
Robin Gareus 2015-07-13 15:33:46 +02:00
parent 56ba08b7cb
commit fa3896a483

View File

@ -149,7 +149,7 @@ ParameterDescriptor::update_steps()
step = step / logf(30.0f);
largestep = largestep / logf(30.0f);
} else if (integer_step) {
smallstep = std::max(1.0, rint(smallstep));
smallstep = 1.0;
step = std::max(1.0, rint(step));
largestep = std::max(1.0, rint(largestep));
}