[Bf-blender-cvs] [8f4697e570d] master: Sequencer: only show the 2D cursor with overlays enabled

Campbell Barton noreply at git.blender.org
Fri Oct 8 04:22:50 CEST 2021


Commit: 8f4697e570d1e74e5121534051ebbfa7a3c3f27a
Author: Campbell Barton
Date:   Fri Oct 8 13:20:19 2021 +1100
Branches: master
https://developer.blender.org/rB8f4697e570d1e74e5121534051ebbfa7a3c3f27a

Sequencer: only show the 2D cursor with overlays enabled

Also hide when displaying scopes.

===================================================================

M	source/blender/editors/space_sequencer/space_sequencer.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list