Commit: 94d80c8ca4739ff8bbc406157812b52a74286370
Author: Joshua Leung
Date:   Fri May 1 12:42:40 2015 +1200
Branches: master
https://developer.blender.org/rB94d80c8ca4739ff8bbc406157812b52a74286370

Left some debug prints in here...

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

M       source/blender/editors/gpencil/gpencil_paint.c

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

diff --git a/source/blender/editors/gpencil/gpencil_paint.c 
b/source/blender/editors/gpencil/gpencil_paint.c
index bcce5cc..767ef7d 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -1950,9 +1950,11 @@ static int gpencil_draw_modal(bContext *C, wmOperator 
*op, const wmEvent *event)
                                /* Change to whatever region is now under the 
mouse */
                                ARegion *current_region = 
BKE_area_find_region_xy(p->sa, RGN_TYPE_ANY, event->x, event->y);
                                
-                               printf("found alternative region %p (old was 
%p) - at %d %d (sa: %d %d -> %d %d)\n",
-                                       current_region, p->ar, event->x, 
event->y,
-                                       p->sa->totrct.xmin, p->sa->totrct.ymin, 
p->sa->totrct.xmax, p->sa->totrct.ymax);
+                               if (G.debug & G_DEBUG) {
+                                       printf("found alternative region %p 
(old was %p) - at %d %d (sa: %d %d -> %d %d)\n",
+                                               current_region, p->ar, 
event->x, event->y,
+                                               p->sa->totrct.xmin, 
p->sa->totrct.ymin, p->sa->totrct.xmax, p->sa->totrct.ymax);
+                               }
                                
                                if (current_region) {
                                        /* Assume that since we found the 
cursor in here, it is in bounds

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to