From 62fcd012cf59c8116e2ca7d9f598a8fe2797394b Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Fri, 7 Mar 2025 17:53:43 +0100 Subject: [PATCH] Fix #135582: Crash box selecting in sequence editor without a sequence Caused by f98b01e49244 The issue of uninitialized `Editing` (in new scenes) has come up before, see e.g. https://projects.blender.org/blender/blender/issues/ 118633#issuecomment-1134447 So it is not uncommon to guard against `Editing` being null, same is now done here Pull Request: https://projects.blender.org/blender/blender/pulls/135623 --- source/blender/editors/space_sequencer/sequencer_select.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/editors/space_sequencer/sequencer_select.cc b/source/blender/editors/space_sequencer/sequencer_select.cc index 49ea4d8e805..422d7d26e62 100644 --- a/source/blender/editors/space_sequencer/sequencer_select.cc +++ b/source/blender/editors/space_sequencer/sequencer_select.cc @@ -996,6 +996,10 @@ static blender::Vector mouseover_strips_sorted_get(const Scene *scene, { Editing *ed = SEQ_editing_get(scene); + if (ed == nullptr) { + return {}; + } + blender::Vector strips; LISTBASE_FOREACH (Strip *, strip, ed->seqbasep) { if (strip->machine != int(mouse_co[1])) {