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-05-03 10:46:38 +0300
committerRichard Antalik <richardantalik@gmail.com>2022-05-03 11:20:41 +0300
commitfd9840321121b4aa8b60c0384219918356b850f2 (patch)
tree15d9923003a23eb3f15d8eea1e5bca5df3f1e098
parentcc0c4c17f011f7f687f7719aab1568c9a5a38217 (diff)
Fix T97733: Crash when adding new scene
Caused by NULL dereference if sequencer data does not exist.
-rw-r--r--source/blender/editors/space_sequencer/space_sequencer.c4
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 = &region->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) {