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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-13 17:32:42 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-13 17:32:42 +0400
commit2914d152411cc1dda353f0806d0f579e9c471730 (patch)
treef8fb08b3c3fc875eb5f84cc90f8d2ea43c434ed0 /source/blender/editors/screen/area.c
parent51c615e1bc40cccea21be332fad5c236d00cff9c (diff)
Fix #35337: sculpt performance regression, partial redraw was not working anymore
due to paint cursor redraw problem.
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r--source/blender/editors/screen/area.c8
1 files changed, 8 insertions, 0 deletions
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));