Fix T73453: Selecting playhead in VSE deselects all selected strips
Tool system handlers had higher priority than the overlayed animation "regions" (fake regions in fact). Give animation (and View2D) handlers priority over toolsystem handlers. Gizmo's still have higher priority, but I'll leave that unless there's a reason to change.
This commit is contained in:
parent
9cb7ecefce
commit
e3f89237fe
Notes:
blender-bot
2023-02-14 07:40:56 +01:00
Referenced by issue #73453, Sequencer: Selecting playhead deselects all selected strips
|
@ -1622,11 +1622,6 @@ static void ed_default_handlers(
|
|||
WM_gizmomap_add_handlers(ar, ar->gizmo_map);
|
||||
}
|
||||
}
|
||||
if (flag & ED_KEYMAP_TOOL) {
|
||||
WM_event_add_keymap_handler_dynamic(
|
||||
&ar->handlers, WM_event_get_keymap_from_toolsystem_fallback, sa);
|
||||
WM_event_add_keymap_handler_dynamic(&ar->handlers, WM_event_get_keymap_from_toolsystem, sa);
|
||||
}
|
||||
if (flag & ED_KEYMAP_VIEW2D) {
|
||||
/* 2d-viewport handling+manipulation */
|
||||
wmKeyMap *keymap = WM_keymap_ensure(wm->defaultconf, "View2D", 0, 0);
|
||||
|
@ -1647,6 +1642,11 @@ static void ed_default_handlers(
|
|||
keymap = WM_keymap_ensure(wm->defaultconf, "Animation", 0, 0);
|
||||
WM_event_add_keymap_handler(handlers, keymap);
|
||||
}
|
||||
if (flag & ED_KEYMAP_TOOL) {
|
||||
WM_event_add_keymap_handler_dynamic(
|
||||
&ar->handlers, WM_event_get_keymap_from_toolsystem_fallback, sa);
|
||||
WM_event_add_keymap_handler_dynamic(&ar->handlers, WM_event_get_keymap_from_toolsystem, sa);
|
||||
}
|
||||
if (flag & ED_KEYMAP_FRAMES) {
|
||||
/* frame changing/jumping (for all spaces) */
|
||||
wmKeyMap *keymap = WM_keymap_ensure(wm->defaultconf, "Frames", 0, 0);
|
||||
|
|
Loading…
Reference in New Issue