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:
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_draw.c')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_draw.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index 5ac4363e63d..0d0042c4656 100644
--- a/source/blender/editors/space_sequencer/sequencer_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_draw.c
@@ -476,7 +476,7 @@ static void draw_seq_waveform_overlay(View2D *v2d,
bool is_line_strip = (value_max - value_min < 0.05f);
- if (was_line_strip != -1 && is_line_strip != was_line_strip) {
+ if (!ELEM(was_line_strip, -1, is_line_strip)) {
/* If the previously added strip type isn't the same as the current one,
* add transition areas so they transition smoothly between each other. */
if (is_line_strip) {
@@ -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);