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
This commit is contained in:
Richard Antalik 2019-09-21 18:47:43 -07:00
parent 29a7b1b64d
commit 2e55171e71
Notes: blender-bot 2023-02-14 02:27:56 +01:00
Referenced by issue #69564, Waveforms in vse vanish when a strip has a volume fcurve with no animation points.
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}