diff options
author | Richard Antalik <richardantalik@gmail.com> | 2019-09-22 04:47:43 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2019-09-22 23:38:39 +0300 |
commit | 2e55171e719def893cdb363d236b40119d33a010 (patch) | |
tree | d4a865c34e7cdab51e6fc9bc394aa78a6e757fcf /source/blender/editors/space_sequencer/sequencer_draw.c | |
parent | 29a7b1b64dd366cf527edc8992311176e720c936 (diff) |
Fix T69564: Empty fcurve prevents waveform drawing
Add check if fcurve is empty to skip fcurve evaluation.
Reviewed By: JacquesLucke
Differential Revision: https://developer.blender.org/D5805
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_draw.c')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c index bf555e8fe09..1a788237e6e 100644 --- a/source/blender/editors/space_sequencer/sequencer_draw.c +++ b/source/blender/editors/space_sequencer/sequencer_draw.c @@ -334,7 +334,7 @@ static void drawseqwave(View2D *v2d, value2 = (1.0f - f) * value2 + f * waveform->data[p * 3 + 4]; } - if (fcu) { + if (fcu && !BKE_fcurve_is_empty(fcu)) { float evaltime = x1_offset + (i * stepsize); volume = evaluate_fcurve(fcu, evaltime); } |