diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2016-10-13 19:42:54 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2016-10-13 19:42:54 +0300 |
commit | dfa5b32c8cc4f9df7da660754eae773f5df102e6 (patch) | |
tree | 73e32bbc235b36a991f722d589c00462fb7eee8b /source/blender/editors/animation | |
parent | ecbedce81eb45e013ff03af64be9bc71c896e85b (diff) | |
parent | 625b504b23beb11e8a02408e7474e38fa525e8ee (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.c | 4 |
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) { |