Fix T91725: Waveforms are not displayed

Use `sseq->timeline_overlay.flag` for `SEQ_TIMELINE_ALL_WAVEFORMS`
instead of `sseq->flag`.
This commit is contained in:
Richard Antalik 2021-10-04 22:17:05 +02:00
parent d1ade756a9
commit c38d2513c5
Notes: blender-bot 2023-02-14 06:49:57 +01:00
Referenced by issue #91725, VSE: Switching Waveforms On doesn't work anymore
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ static void draw_seq_waveform_overlay(View2D *v2d,
float frames_per_pixel)
{
if (seq->sound &&
((sseq->flag & SEQ_TIMELINE_ALL_WAVEFORMS) || (seq->flag & SEQ_AUDIO_DRAW_WAVEFORM))) {
((sseq->timeline_overlay.flag & SEQ_TIMELINE_ALL_WAVEFORMS) || (seq->flag & SEQ_AUDIO_DRAW_WAVEFORM))) {
/* Make sure that the start drawing position is aligned to the pixels on the screen to avoid
* flickering when moving around the strip.
* To do this we figure out the fractional offset in pixel space by checking where the