Fix #135582: Crash box selecting in sequence editor without a sequence

Caused by f98b01e492

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
This commit is contained in:
Philipp Oeser
2025-03-07 17:53:43 +01:00
committed by Philipp Oeser
parent 8beb695b7f
commit 62fcd012cf
@@ -996,6 +996,10 @@ static blender::Vector<Strip *> mouseover_strips_sorted_get(const Scene *scene,
{
Editing *ed = SEQ_editing_get(scene);
if (ed == nullptr) {
return {};
}
blender::Vector<Strip *> strips;
LISTBASE_FOREACH (Strip *, strip, ed->seqbasep) {
if (strip->machine != int(mouse_co[1])) {