Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-20 20:04:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-20 20:04:15 +0400
commit29392dc2b4f828bf0fa3ed22e964ced604d9e0b1 (patch)
tree54c45f104a7b35d745aa042aeb420bc95fd4c756 /source/blender
parent73b79a6763f762ff2999622edd7c70aee69c18e9 (diff)
don't print mousemoves with wm_handlers_do and --debug-events
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c8
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