Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_draw.c
| Show First 20 Lines • Show All 2,299 Lines • ▼ Show 20 Lines | if (ed && ed->metastack.first) { | ||||
| GPU_clear_color(col[0], col[1], col[2] - 0.1f, 0.0f); | GPU_clear_color(col[0], col[1], col[2] - 0.1f, 0.0f); | ||||
| } | } | ||||
| else { | else { | ||||
| GPU_clear_color(col[0], col[1], col[2], 0.0f); | GPU_clear_color(col[0], col[1], col[2], 0.0f); | ||||
| } | } | ||||
| UI_view2d_view_ortho(v2d); | UI_view2d_view_ortho(v2d); | ||||
| /* Get timeline bound-box, needed for the scroll-bars. */ | /* Get timeline bound-box, needed for the scroll-bars. */ | ||||
| SEQ_timeline_boundbox(scene, ed->seqbasep, &v2d->tot); | SEQ_timeline_boundbox(scene, SEQ_active_seqbase_get(ed), &v2d->tot); | ||||
| draw_seq_backdrop(v2d); | draw_seq_backdrop(v2d); | ||||
| UI_view2d_constant_grid_draw(v2d, FPS); | UI_view2d_constant_grid_draw(v2d, FPS); | ||||
| /* Only draw backdrop in timeline view. */ | /* Only draw backdrop in timeline view. */ | ||||
| if (sseq->view == SEQ_VIEW_SEQUENCE && sseq->draw_flag & SEQ_DRAW_BACKDROP) { | if (sseq->view == SEQ_VIEW_SEQUENCE && sseq->draw_flag & SEQ_DRAW_BACKDROP) { | ||||
| sequencer_draw_preview(C, scene, region, sseq, scene->r.cfra, 0, false, true); | sequencer_draw_preview(C, scene, region, sseq, scene->r.cfra, 0, false, true); | ||||
| UI_view2d_view_ortho(v2d); | UI_view2d_view_ortho(v2d); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines | |||||