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; }