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>2011-05-20 22:19:29 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-20 22:19:29 +0400
commitd16da799fbafedf38ac0ab893d62c514b078589c (patch)
tree1161de4ac471776f12a2d57353fc48fc9258cf5d /source/blender/editors/transform
parent9563743f4ee879f2cd7900dbc0c3bf0514c899a1 (diff)
change transform to round at 0.5 for fcurves.
this gave noticeable issue when transforming int/fcurve's below zero.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r--source/blender/editors/transform/transform_conversions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index 8d37b7aeabb..5fbb3f07c5b 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -3699,7 +3699,7 @@ void flushTransGraphData(TransInfo *t)
/* if int-values only, truncate to integers */
if (td->flag & TD_INTVALUES)
- td2d->loc2d[1]= (float)((int)td2d->loc[1]);
+ td2d->loc2d[1]= floorf(td2d->loc[1] + 0.5f);
else
td2d->loc2d[1]= td2d->loc[1];