Fix T60497: wrong statusbar keymap display with MMB emulation.

This commit is contained in:
Brecht Van Lommel 2019-01-15 11:33:50 +01:00
parent bb70594c1b
commit 48f38f850b
Notes: blender-bot 2023-02-14 10:35:28 +01:00
Referenced by issue #60497, Edge Ring Select with Emulate 3 Button Mouse
1 changed files with 1 additions and 0 deletions

View File

@ -4623,6 +4623,7 @@ void WM_window_cursor_keymap_status_refresh(bContext *C, wmWindow *win)
wmEvent test_event = *win->eventstate;
test_event.type = event_data[data_index].event_type;
test_event.val = event_data[data_index].event_value;
wm_eventemulation(&test_event);
wmKeyMapItem *kmi = NULL;
for (int handler_index = 0; handler_index < ARRAY_SIZE(handlers); handler_index++) {
kmi = wm_kmi_from_event(C, wm, handlers[handler_index], &test_event);