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:
authorAntony Riakiotakis <kalast@gmail.com>2015-04-13 19:37:15 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-04-13 19:37:15 +0300
commitaed97c9efb3c7c035031bf70edd07f2d81e4e3e2 (patch)
tree400fddd8d667094f33e686f5fdef2035075ca60f /source/blender/editors/animation/anim_draw.c
parentcae23bab6b5fdb0da96244c1ecc8c1586c9961f3 (diff)
Fix bug with autonormalization and transform (after own range commit).
Transforming the center after transforming a handle would continuously flush an extra offset to the handles. Also use normalization range of -1.0 to 1.0 instead of -0.5 to 0.5 (not really important, just for better comparisons)
Diffstat (limited to 'source/blender/editors/animation/anim_draw.c')
-rw-r--r--source/blender/editors/animation/anim_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/animation/anim_draw.c b/source/blender/editors/animation/anim_draw.c
index 6d0086ca459..54d371d8f50 100644
--- a/source/blender/editors/animation/anim_draw.c
+++ b/source/blender/editors/animation/anim_draw.c
@@ -330,7 +330,7 @@ static float normalization_factor_get(Scene *scene, FCurve *fcu, short flag, flo
range = max_coord - min_coord;
if (range > FLT_EPSILON) {
- factor = 1.0f / range;
+ factor = 2.0f / range;
}
offset = -min_coord - range / 2.0f;
}