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_channels_draw.c')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_channels_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_channels_draw.c b/source/blender/editors/space_sequencer/sequencer_channels_draw.c
index 99a305fcf66..c1e854fd350 100644
--- a/source/blender/editors/space_sequencer/sequencer_channels_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_channels_draw.c
@@ -93,10 +93,10 @@ static void displayed_channel_range_get(SeqChannelDrawContext *context, int chan
channel_range[1] = ceil(context->timeline_region_v2d->cur.ymax);
rctf strip_boundbox;
- BLI_rctf_init(&strip_boundbox, 0.0f, 0.0f, 1.0f, channel_range[1]);
+ BLI_rctf_init(&strip_boundbox, 0.0f, 0.0f, 1.0f, 7);
SEQ_timeline_expand_boundbox(context->seqbase, &strip_boundbox);
CLAMP(channel_range[0], strip_boundbox.ymin, strip_boundbox.ymax);
- CLAMP(channel_range[1], strip_boundbox.ymin, MAXSEQ);
+ CLAMP(channel_range[1], strip_boundbox.ymin, strip_boundbox.ymax);
}
static float draw_channel_widget_hide(SeqChannelDrawContext *context,