From 00d5fd9cb780bb7de0b23f94ec80971d6f8c7646 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 29 Oct 2009 11:12:59 +0000 Subject: Sculpt: fix first partial redraw giving wrong bounds. --- source/blender/editors/sculpt_paint/sculpt.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/sculpt_paint') diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 74762379202..2f4d2d9e8bf 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -207,6 +207,9 @@ int sculpt_get_redraw_rect(ARegion *ar, RegionView3D *rv3d, rect->xmin = rect->ymin = INT_MAX; rect->xmax = rect->ymax = INT_MIN; + if(bb_min[0] > bb_max[0] || bb_min[1] > bb_max[1] || bb_min[2] > bb_max[2]) + return 0; + for(i = 0; i < 2; ++i) { for(j = 0; j < 2; ++j) { for(k = 0; k < 2; ++k) { -- cgit v1.2.3