don't print mousemoves with wm_handlers_do and --debug-events
This commit is contained in:
parent
73b79a6763
commit
29392dc2b4
|
@ -1688,8 +1688,12 @@ static int wm_handlers_do(bContext *C, wmEvent *event, ListBase *handlers)
|
|||
|
||||
#ifndef NDEBUG
|
||||
if (do_debug_handler) {
|
||||
printf("%s: handling event\n", __func__);
|
||||
WM_event_print(event);
|
||||
/* in rare cases you may want to comment this out for testing,
|
||||
* but mostly this is just annoying */
|
||||
if (!ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE)) {
|
||||
printf("%s: handling event\n", __func__);
|
||||
WM_event_print(event);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue