diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-20 20:04:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-20 20:04:15 +0400 |
commit | 29392dc2b4f828bf0fa3ed22e964ced604d9e0b1 (patch) | |
tree | 54c45f104a7b35d745aa042aeb420bc95fd4c756 /source | |
parent | 73b79a6763f762ff2999622edd7c70aee69c18e9 (diff) |
don't print mousemoves with wm_handlers_do and --debug-events
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 73950bdfa19..bb5c869b87e 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -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 |