From 60d0cfdfe4d0d8104606a26dccffea635444ca60 Mon Sep 17 00:00:00 2001 From: John Kiril Swenson Date: Thu, 16 Oct 2025 01:51:01 +0200 Subject: [PATCH] Fix #147701: VSE: Can't select markers when scene and sequencer scene differ Add a simple check to the Marker keymap poll. Since there's no `bContext` passed to the function we can reconstruct it from the workspace. We can exit early if there is no sequencer scene (when no markers are guaranteed). View layer can remain the same since it only applies in the `SPACE_ACTION` case. Pull Request: https://projects.blender.org/blender/blender/pulls/147903 --- .../windowmanager/intern/wm_event_system.cc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/source/blender/windowmanager/intern/wm_event_system.cc b/source/blender/windowmanager/intern/wm_event_system.cc index 16ff632932d..ef8119cb3aa 100644 --- a/source/blender/windowmanager/intern/wm_event_system.cc +++ b/source/blender/windowmanager/intern/wm_event_system.cc @@ -4981,8 +4981,21 @@ bool WM_event_handler_region_marker_poll(const wmWindow *win, break; } + /* Check for markers in the current scene, noting that the VSE uses a special sequencer scene. */ + Scene *scene = WM_window_get_active_scene(win); + + if (area->spacetype == SPACE_SEQ) { + WorkSpace *workspace = WM_window_get_active_workspace(win); + if (workspace && workspace->sequencer_scene) { + scene = workspace->sequencer_scene; + } + else { + return false; + } + } + const ListBase *markers = ED_scene_markers_get_from_area( - WM_window_get_active_scene(win), WM_window_get_active_view_layer(win), area); + scene, WM_window_get_active_view_layer(win), area); if (BLI_listbase_is_empty(markers)) { return false; }