Fix T75019: Frame Offset does not apply to scopes

Don't check for `sseq->mainb == SEQ_DRAW_IMG_IMBUF`.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D7228
This commit is contained in:
Richard Antalik 2020-03-25 00:09:14 +01:00
parent 8e8fdf875d
commit e1c7549ac9
Notes: blender-bot 2023-10-04 09:42:55 +02:00
Referenced by issue #75019, Frame Offset does not apply to scopes
1 changed files with 3 additions and 4 deletions

View File

@ -679,19 +679,18 @@ static void sequencer_preview_region_draw(const bContext *C, ARegion *region)
SpaceSeq *sseq = sa->spacedata.first;
Scene *scene = CTX_data_scene(C);
wmWindowManager *wm = CTX_wm_manager(C);
const bool show_split = (scene->ed && (scene->ed->over_flag & SEQ_EDIT_OVERLAY_SHOW) &&
(sseq->mainb == SEQ_DRAW_IMG_IMBUF));
const bool draw_overlay = (scene->ed && (scene->ed->over_flag & SEQ_EDIT_OVERLAY_SHOW));
/* XXX temp fix for wrong setting in sseq->mainb */
if (sseq->mainb == SEQ_DRAW_SEQUENCE) {
sseq->mainb = SEQ_DRAW_IMG_IMBUF;
}
if (!show_split || sseq->overlay_type != SEQ_DRAW_OVERLAY_REFERENCE) {
if (!draw_overlay || sseq->overlay_type != SEQ_DRAW_OVERLAY_REFERENCE) {
sequencer_draw_preview(C, scene, region, sseq, scene->r.cfra, 0, false, false);
}
if (show_split && sseq->overlay_type != SEQ_DRAW_OVERLAY_CURRENT) {
if (draw_overlay && sseq->overlay_type != SEQ_DRAW_OVERLAY_CURRENT) {
int over_cfra;
if (scene->ed->over_flag & SEQ_EDIT_OVERLAY_ABS) {