[Bf-blender-cvs] [9a18813bc06] tmp-debug-filebrowser: Moar debug printf...

Bastien Montagne noreply at git.blender.org
Wed Jul 19 16:55:08 CEST 2017


Commit: 9a18813bc067db099d60f38e1b904fbabfcc6a68
Author: Bastien Montagne
Date:   Wed Jul 19 16:54:19 2017 +0200
Branches: tmp-debug-filebrowser
https://developer.blender.org/rB9a18813bc067db099d60f38e1b904fbabfcc6a68

Moar debug printf...

===================================================================

M	source/blender/windowmanager/intern/wm_event_system.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index 4966c67db7c..b359a9b944e 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -2061,7 +2061,8 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers
 	 * by the event thats called, for eg:
 	 *
 	 * Calling a python script which changes the area.type, see [#32232] */
-	for (handler = handlers->first; handler && handlers->first; handler = nexthandler) {
+	int i = 0;
+	for (handler = handlers->first; handler && handlers->first; handler = nexthandler, i++) {
 
 		nexthandler = handler->next;
 		
@@ -2072,7 +2073,7 @@ static int wm_handlers_do_intern(bContext *C, wmEvent *event, ListBase *handlers
 		}
 		else if (handler_boundbox_test(handler, event)) { /* optional boundbox */
 			if (handler->type == WM_HANDLER_FILESELECT)
-				printf("%s: checking %d, %p\n", __func__, event->type, event->customdata);
+				printf("%s: handler # %d, checking %d, %p\n", __func__, i, event->type, event->customdata);
 
 			/* in advance to avoid access to freed event on window close */
 			always_pass = wm_event_always_pass(event);




More information about the Bf-blender-cvs mailing list