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:
authorDalai Felinto <dfelinto@gmail.com>2016-10-13 19:42:54 +0300
committerDalai Felinto <dfelinto@gmail.com>2016-10-13 19:42:54 +0300
commitdfa5b32c8cc4f9df7da660754eae773f5df102e6 (patch)
tree73e32bbc235b36a991f722d589c00462fb7eee8b /source/blender/editors/animation
parentecbedce81eb45e013ff03af64be9bc71c896e85b (diff)
parent625b504b23beb11e8a02408e7474e38fa525e8ee (diff)
Merge remote-tracking branch 'origin/master' into blender2.8
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r--source/blender/editors/animation/anim_draw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/animation/anim_draw.c b/source/blender/editors/animation/anim_draw.c
index f8b98ebb8b7..33e44d73894 100644
--- a/source/blender/editors/animation/anim_draw.c
+++ b/source/blender/editors/animation/anim_draw.c
@@ -350,6 +350,10 @@ static float normalization_factor_get(Scene *scene, FCurve *fcu, short flag, flo
}
offset = -min_coord - range / 2.0f;
}
+ else if (max_coord == min_coord) {
+ factor = 1.0f;
+ offset = -min_coord;
+ }
}
BLI_assert(factor != 0.0f);
if (r_offset) {