Fix T42222
Avoid using roundf function, since it's oly defined in C99
This commit is contained in:
parent
59b4ea5c69
commit
507712db3f
Notes:
blender-bot
2023-02-14 09:57:39 +01:00
Referenced by commit d73e3f71d4
, Revert "Fix T42222"
Referenced by issue #42222, 2.72 fails to build with gcc 4.8/scons, implicit declaration of roundf
|
@ -1726,7 +1726,7 @@ static void scroller_activate_apply(bContext *C, wmOperator *op)
|
|||
temp = vsm->fac * vsm->delta;
|
||||
|
||||
/* round to pixel */
|
||||
temp = roundf(temp / vsm->fac_round) * vsm->fac_round;
|
||||
temp = floorf(temp / vsm->fac_round + 0.5f) * vsm->fac_round;
|
||||
|
||||
/* type of movement */
|
||||
switch (vsm->zone) {
|
||||
|
|
Loading…
Reference in New Issue