From 2914d152411cc1dda353f0806d0f579e9c471730 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 13 May 2013 13:32:42 +0000 Subject: Fix #35337: sculpt performance regression, partial redraw was not working anymore due to paint cursor redraw problem. --- source/blender/editors/screen/area.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/editors/screen/area.c') diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 188340e70a3..749fa40a76c 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -454,6 +454,14 @@ void ED_region_do_draw(bContext *C, ARegion *ar) ED_region_draw_cb_draw(C, ar, REGION_DRAW_POST_PIXEL); + /* for debugging unneeded area redraws and partial redraw */ +#if 0 + glEnable(GL_BLEND); + glColor4f(drand48(), drand48(), drand48(), 0.1f); + glRectf(ar->drawrct.xmin - 1, ar->drawrct.ymin - 1, ar->drawrct.xmax + 1, ar->drawrct.ymax + 1); + glDisable(GL_BLEND); +#endif + ar->do_draw = FALSE; memset(&ar->drawrct, 0, sizeof(ar->drawrct)); -- cgit v1.2.3