Fix T45281: IOR Value Slider with "Ctrl" modifier does not increment as intended.

Looks like a typo in rB1b8069bd?
This commit is contained in:
Bastien Montagne 2015-07-03 18:56:59 +02:00
parent e42609db49
commit c503d17353
Notes: blender-bot 2023-02-14 08:56:46 +01:00
Referenced by issue #45281, IOR Value Slider with "Ctrl" modifier does not increment as intended
1 changed files with 1 additions and 1 deletions

View File

@ -3934,7 +3934,7 @@ static float ui_numedit_apply_snapf(
/* workaround, too high snapping values */
/* snapping by 10's for float buttons is quite annoying (location, scale...),
* but allow for rotations */
if ((softrange > 2100.0f)) {
if (softrange >= 21.0f) {
int unit_type = UI_but_unit_type_get(but);
if (!ELEM(unit_type, PROP_UNIT_ROTATION)) {
softrange = 20.0f;