diff options
author | Richard Antalik <richardantalik@gmail.com> | 2022-05-03 10:46:38 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2022-05-03 11:20:41 +0300 |
commit | fd9840321121b4aa8b60c0384219918356b850f2 (patch) | |
tree | 15d9923003a23eb3f15d8eea1e5bca5df3f1e098 /source/blender | |
parent | cc0c4c17f011f7f687f7719aab1568c9a5a38217 (diff) |
Fix T97733: Crash when adding new scene
Caused by NULL dereference if sequencer data does not exist.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_sequencer/space_sequencer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c index 26479629ec3..2ce237a53f2 100644 --- a/source/blender/editors/space_sequencer/space_sequencer.c +++ b/source/blender/editors/space_sequencer/space_sequencer.c @@ -550,6 +550,10 @@ static void sequencer_main_clamp_view(const bContext *C, ARegion *region) View2D *v2d = ®ion->v2d; Editing *ed = SEQ_editing_get(CTX_data_scene(C)); + if (ed == NULL) { + return; + } + /* Transformation uses edge panning to move view. Also if smooth view is running, don't apply * clamping to prevent overriding this functionality. */ if (G.moving || v2d->smooth_timer != NULL) { |