Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/space_sequencer.c
| Show First 20 Lines • Show All 803 Lines • ▼ Show 20 Lines | if (draw_frame_overlay && sseq->overlay_frame_type != SEQ_OVERLAY_FRAME_TYPE_CURRENT) { | ||||
| if ((over_cfra != scene->r.cfra) || | if ((over_cfra != scene->r.cfra) || | ||||
| (sseq->overlay_frame_type != SEQ_OVERLAY_FRAME_TYPE_RECT)) { | (sseq->overlay_frame_type != SEQ_OVERLAY_FRAME_TYPE_RECT)) { | ||||
| sequencer_draw_preview( | sequencer_draw_preview( | ||||
| C, scene, region, sseq, scene->r.cfra, over_cfra - scene->r.cfra, true, false); | C, scene, region, sseq, scene->r.cfra, over_cfra - scene->r.cfra, true, false); | ||||
| } | } | ||||
| } | } | ||||
| /* No need to show the cursor for scopes. */ | /* No need to show the cursor for scopes. */ | ||||
| if (draw_overlay && (is_playing == false) && (sseq->mainb == SEQ_DRAW_IMG_IMBUF)) { | if (draw_overlay && (is_playing == false) && (sseq->mainb == SEQ_DRAW_IMG_IMBUF) && | ||||
| (sseq->preview_overlay.flag & SEQ_PREVIEW_SHOW_2D_CURSOR) != 0) { | |||||
| GPU_color_mask(true, true, true, true); | GPU_color_mask(true, true, true, true); | ||||
| GPU_depth_mask(false); | GPU_depth_mask(false); | ||||
| GPU_depth_test(GPU_DEPTH_NONE); | GPU_depth_test(GPU_DEPTH_NONE); | ||||
| float cursor_pixel[2]; | float cursor_pixel[2]; | ||||
| SEQ_image_preview_unit_to_px(scene, sseq->cursor, cursor_pixel); | SEQ_image_preview_unit_to_px(scene, sseq->cursor, cursor_pixel); | ||||
| DRW_draw_cursor_2d_ex(region, cursor_pixel); | DRW_draw_cursor_2d_ex(region, cursor_pixel); | ||||
| ▲ Show 20 Lines • Show All 238 Lines • Show Last 20 Lines | |||||