[Bf-blender-cvs] [fe3a9fcce1e] master: Fix incorrect meta strip background color

Richard Antalik noreply at git.blender.org
Thu Mar 10 20:27:48 CET 2022


Commit: fe3a9fcce1e6cfce84139d53efe6ed17a71bcad7
Author: Richard Antalik
Date:   Thu Mar 10 20:22:02 2022 +0100
Branches: master
https://developer.blender.org/rBfe3a9fcce1e6cfce84139d53efe6ed17a71bcad7

Fix incorrect meta strip background color

When viewing meta strip, it had orange color. This was caused by
overflow because of hard-coded offset. Theme got darker, and background
was also set again further in code, but redundant drawing was removed in
f4492629ea0.

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

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

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

diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index bdad08fe20a..0d0042c4656 100644
--- a/source/blender/editors/space_sequencer/sequencer_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_draw.c
@@ -2690,12 +2690,7 @@ void draw_timeline_seq(const bContext *C, ARegion *region)
   GPU_depth_test(GPU_DEPTH_NONE);
 
   UI_GetThemeColor3fv(TH_BACK, col);
-  if (ed && ed->metastack.first) {
-    GPU_clear_color(col[0], col[1], col[2] - 0.1f, 0.0f);
-  }
-  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);
   draw_seq_timeline_channels(v2d);



More information about the Bf-blender-cvs mailing list