Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/space_sequencer.c
| Show First 20 Lines • Show All 673 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static void sequencer_preview_region_draw(const bContext *C, ARegion *region) | static void sequencer_preview_region_draw(const bContext *C, ARegion *region) | ||||
| { | { | ||||
| ScrArea *sa = CTX_wm_area(C); | ScrArea *sa = CTX_wm_area(C); | ||||
| SpaceSeq *sseq = sa->spacedata.first; | SpaceSeq *sseq = sa->spacedata.first; | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| wmWindowManager *wm = CTX_wm_manager(C); | wmWindowManager *wm = CTX_wm_manager(C); | ||||
| const bool show_split = (scene->ed && (scene->ed->over_flag & SEQ_EDIT_OVERLAY_SHOW) && | const bool draw_overlay = (scene->ed && (scene->ed->over_flag & SEQ_EDIT_OVERLAY_SHOW)); | ||||
| (sseq->mainb == SEQ_DRAW_IMG_IMBUF)); | |||||
| /* XXX temp fix for wrong setting in sseq->mainb */ | /* XXX temp fix for wrong setting in sseq->mainb */ | ||||
| if (sseq->mainb == SEQ_DRAW_SEQUENCE) { | if (sseq->mainb == SEQ_DRAW_SEQUENCE) { | ||||
| sseq->mainb = SEQ_DRAW_IMG_IMBUF; | 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); | 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; | int over_cfra; | ||||
| if (scene->ed->over_flag & SEQ_EDIT_OVERLAY_ABS) { | if (scene->ed->over_flag & SEQ_EDIT_OVERLAY_ABS) { | ||||
| over_cfra = scene->ed->over_cfra; | over_cfra = scene->ed->over_cfra; | ||||
| } | } | ||||
| else { | else { | ||||
| over_cfra = scene->r.cfra + scene->ed->over_ofs; | over_cfra = scene->r.cfra + scene->ed->over_ofs; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines | |||||