[Bf-blender-cvs] [950aeb9276c] temp-vse-channels-edge-panning: Fix drawing too many channels
Richard Antalik
noreply at git.blender.org
Thu Mar 24 02:35:44 CET 2022
Commit: 950aeb9276c935b27b7d65c1d5035482a5025bbf
Author: Richard Antalik
Date: Thu Mar 24 02:24:32 2022 +0100
Branches: temp-vse-channels-edge-panning
https://developer.blender.org/rB950aeb9276c935b27b7d65c1d5035482a5025bbf
Fix drawing too many channels
===================================================================
M source/blender/editors/space_sequencer/sequencer_channels_draw.c
===================================================================
diff --git a/source/blender/editors/space_sequencer/sequencer_channels_draw.c b/source/blender/editors/space_sequencer/sequencer_channels_draw.c
index 0cf3fd76960..9d933d21e85 100644
--- a/source/blender/editors/space_sequencer/sequencer_channels_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_channels_draw.c
@@ -92,7 +92,7 @@ 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, MAXSEQ);
+ 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, strip_boundbox.ymax);
More information about the Bf-blender-cvs
mailing list