[Bf-blender-cvs] [fd984032112] blender-v3.2-release: Fix T97733: Crash when adding new scene
Richard Antalik
noreply at git.blender.org
Tue May 3 10:21:04 CEST 2022
Commit: fd9840321121b4aa8b60c0384219918356b850f2
Author: Richard Antalik
Date: Tue May 3 09:46:38 2022 +0200
Branches: blender-v3.2-release
https://developer.blender.org/rBfd9840321121b4aa8b60c0384219918356b850f2
Fix T97733: Crash when adding new scene
Caused by NULL dereference if sequencer data does not exist.
===================================================================
M source/blender/editors/space_sequencer/space_sequencer.c
===================================================================
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) {
More information about the Bf-blender-cvs
mailing list