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:
authorRichard Antalik <richardantalik@gmail.com>2022-04-04 17:27:37 +0300
committerRichard Antalik <richardantalik@gmail.com>2022-04-04 17:30:16 +0300
commite4289f23604a4dfa1b3ba45b9e5eaf7bf47f420c (patch)
treec236ae651a516826a716e14b0c785c39a03a2e86 /source/blender/editors/space_sequencer
parente7f4aa8f0cb617327e0358c134bc606bfb8742d4 (diff)
Fix errors in sequencer channel headers
Failing constraint test uncovered crashes on NULL dereference and missing channels initialization in `SEQ_editing_ensure()`.
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_channels_draw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_channels_draw.c b/source/blender/editors/space_sequencer/sequencer_channels_draw.c
index 5a43eade999..b4bb4e950f0 100644
--- a/source/blender/editors/space_sequencer/sequencer_channels_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_channels_draw.c
@@ -347,6 +347,11 @@ void channel_draw_context_init(const bContext *C,
void draw_channels(const bContext *C, ARegion *region)
{
+ Editing *ed = SEQ_editing_get(CTX_data_scene(C));
+ if (ed == NULL) {
+ return;
+ }
+
SeqChannelDrawContext context;
channel_draw_context_init(C, region, &context);