Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-10-29 13:10:07 +0300
committerCampbell Barton <ideasman42@gmail.com>2014-10-29 13:11:51 +0300
commitd73e3f71d4cd5975c82f61d57494aa56a0760c29 (patch)
treea823621efc4dc57da570156c65a3de4e52fa51db /source/blender
parent6d1c0260bbb7e17c4594f3b59ff2e9ca255d9791 (diff)
Revert "Fix T42222"
This reverts commit 507712db3fd7aa7bb903f6860f5a4eb29aa2be02. Error was quite an old compiler, which had further warnings/errors. Old compilers can just have this defined in BLI_math
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/interface/view2d_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/view2d_ops.c b/source/blender/editors/interface/view2d_ops.c
index a396893f8f2..2b84c0678ae 100644
--- a/source/blender/editors/interface/view2d_ops.c
+++ b/source/blender/editors/interface/view2d_ops.c
@@ -1726,7 +1726,7 @@ static void scroller_activate_apply(bContext *C, wmOperator *op)
temp = vsm->fac * vsm->delta;
/* round to pixel */
- temp = floorf(temp / vsm->fac_round + 0.5f) * vsm->fac_round;
+ temp = roundf(temp / vsm->fac_round) * vsm->fac_round;
/* type of movement */
switch (vsm->zone) {