Fix T97918: Crash when changing "Frame All" shortcut from context menu

After removing the default 'Home' shortcut for "Frame All", a NDOF (3D
Mouse) default shortcut was still available for the operator. The event
filtering introduced in 4357fb63db was missing the NDOF filtering
logic. So while the context menu correctly found the NDOF keymap item,
its actual shortcut change/removal code incorrectly filtered out the
NDOF keymap items and thus failed to find the item.
This commit is contained in:
Julian Eisel 2022-05-27 12:45:35 +02:00
parent e5c65709a2
commit 5417b8434a
Notes: blender-bot 2023-02-13 22:20:49 +01:00
Referenced by issue #97918, Crash when changing shader editor "Frame All" shortcut after removing the default shortcut
1 changed files with 7 additions and 0 deletions

View File

@ -199,6 +199,13 @@ bool WM_event_type_mask_test(const int event_type, const enum eEventType_Mask ma
}
}
/* NDOF */
if (mask & EVT_TYPE_MASK_NDOF) {
if (ISNDOF(event_type)) {
return true;
}
}
/* Action Zone. */
if (mask & EVT_TYPE_MASK_ACTIONZONE) {
if (IS_EVENT_ACTIONZONE(event_type)) {