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 <campbell@blender.org>2022-03-09 01:35:37 +0300
committerFabian Schempp <fabianschempp@googlemail.com>2022-04-11 01:30:36 +0300
commit5f4c150e79d1e5083f01044097b5d6deb3e7e22d (patch)
tree26863c9e485c2028c4c24b246720d1106ab1e8a6 /source/blender/editors/space_sequencer/sequencer_draw.c
parenta9f0649678f98b89fda17621f369042df51e954a (diff)
Cleanup: use ELEM macro
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_draw.c')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index 5ac4363e63d..bdad08fe20a 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) {