Sequencer: only show the 2D cursor with overlays enabled

Also hide when displaying scopes.
This commit is contained in:
Campbell Barton 2021-10-08 13:20:19 +11:00
parent 2f9fab716d
commit 8f4697e570
1 changed files with 2 additions and 1 deletions

View File

@ -804,7 +804,8 @@ static void sequencer_preview_region_draw(const bContext *C, ARegion *region)
}
}
{
/* No need to show the cursor for scopes. */
if (draw_overlay && (sseq->mainb == SEQ_DRAW_IMG_IMBUF)) {
GPU_color_mask(true, true, true, true);
GPU_depth_mask(false);
GPU_depth_test(GPU_DEPTH_NONE);