Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-10-08 05:20:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-10-08 05:20:19 +0300
commit8f4697e570d1e74e5121534051ebbfa7a3c3f27a (patch)
tree01964d0463e7201545b1add9fbbbfc1866a43bb0 /source/blender/editors/space_sequencer
parent2f9fab716dbd53c9b8520272d3745994415dc819 (diff)
Sequencer: only show the 2D cursor with overlays enabled
Also hide when displaying scopes.
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r--source/blender/editors/space_sequencer/space_sequencer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c
index 508669abd04..4c4c908ea3c 100644
--- a/source/blender/editors/space_sequencer/space_sequencer.c
+++ b/source/blender/editors/space_sequencer/space_sequencer.c
@@ -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);