[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51686] trunk/blender/source/blender/ windowmanager/intern/wm_event_system.c: add back debug prints for event handlers.
Campbell Barton
ideasman42 at gmail.com
Sat Oct 27 16:55:35 CEST 2012
Revision: 51686
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51686
Author: campbellbarton
Date: 2012-10-27 14:55:31 +0000 (Sat, 27 Oct 2012)
Log Message:
-----------
add back debug prints for event handlers. not sure why they were removed in r51683
Revision Links:
--------------
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51683
Modified Paths:
--------------
trunk/blender/source/blender/windowmanager/intern/wm_event_system.c
Modified: trunk/blender/source/blender/windowmanager/intern/wm_event_system.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_event_system.c 2012-10-27 14:10:25 UTC (rev 51685)
+++ trunk/blender/source/blender/windowmanager/intern/wm_event_system.c 2012-10-27 14:55:31 UTC (rev 51686)
@@ -1696,10 +1696,8 @@
#ifndef NDEBUG
if (do_debug_handler) {
- /* in rare cases you may want to comment this out for testing,
- * but mostly this is just annoying */
- //printf("%s: handling event\n", __func__);
- //WM_event_print(event);
+ printf("%s: handling event\n", __func__);
+ WM_event_print(event);
}
#endif
@@ -1731,7 +1729,7 @@
#ifndef NDEBUG
if (do_debug_handler) {
- //printf("%s: checking '%s' ...", __func__, keymap->idname);
+ printf("%s: checking '%s' ...", __func__, keymap->idname);
}
#endif
@@ -1739,7 +1737,7 @@
#ifndef NDEBUG
if (do_debug_handler) {
- //printf("pass\n");
+ printf("pass\n");
}
#endif
@@ -1748,7 +1746,7 @@
#ifndef NDEBUG
if (do_debug_handler) {
- //printf("%s: item matched '%s'\n", __func__, kmi->idname);
+ printf("%s: item matched '%s'\n", __func__, kmi->idname);
}
#endif
@@ -1760,7 +1758,7 @@
/* not always_pass here, it denotes removed handler */
#ifndef NDEBUG
if (do_debug_handler) {
- //printf("%s: handled! '%s'...", __func__, kmi->idname);
+ printf("%s: handled! '%s'...", __func__, kmi->idname);
}
#endif
break;
@@ -1768,7 +1766,7 @@
else {
#ifndef NDEBUG
if (do_debug_handler) {
- //printf("%s: un-handled '%s'...", __func__, kmi->idname);
+ printf("%s: un-handled '%s'...", __func__, kmi->idname);
}
#endif
}
@@ -1778,7 +1776,7 @@
else {
#ifndef NDEBUG
if (do_debug_handler) {
- //printf("fail\n");
+ printf("fail\n");
}
#endif
}
More information about the Bf-blender-cvs
mailing list