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:
authorJoshua Leung <aligorith@gmail.com>2015-05-01 03:42:40 +0300
committerJoshua Leung <aligorith@gmail.com>2015-05-01 03:44:37 +0300
commit94d80c8ca4739ff8bbc406157812b52a74286370 (patch)
tree5f0b15e8145dcce4069640ac56b7d9131e4f7d2e /source/blender
parentbe0dcd4e3429dcbaaf4f2884695e883438fd0b95 (diff)
Left some debug prints in here...
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index bcce5cc8fab..767ef7d16d7 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