VSE: Fix cache bar not visible

Cache bar was only visible when Frame overlay was enabled

Reviewed By: jbakker

Differential Revision: https://developer.blender.org/D11779
This commit is contained in:
Richard Antalik 2021-07-07 03:02:01 +02:00
parent 6ac3a10619
commit 45d54ea67f
Notes: blender-bot 2023-02-14 07:30:31 +01:00
Referenced by commit 8346417d09, Fix crash displaying the sequencer without a valid 'scene->ed'
1 changed files with 4 additions and 3 deletions

View File

@ -2479,12 +2479,13 @@ void draw_timeline_seq_display(const bContext *C, ARegion *region)
const SpaceSeq *sseq = CTX_wm_space_seq(C);
View2D *v2d = &region->v2d;
UI_view2d_view_ortho(v2d);
draw_cache_view(C);
if (scene->ed && scene->ed->over_flag & SEQ_EDIT_OVERLAY_SHOW) {
UI_view2d_view_ortho(v2d);
draw_cache_view(C);
draw_overlap_frame_indicator(scene, v2d);
UI_view2d_view_restore(C);
}
UI_view2d_view_restore(C);
ED_time_scrub_draw_current_frame(region, scene, !(sseq->flag & SEQ_DRAWFRAMES), true);
UI_view2d_scrollers_draw(v2d, NULL);