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>2009-10-29 14:12:59 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-29 14:12:59 +0300
commit00d5fd9cb780bb7de0b23f94ec80971d6f8c7646 (patch)
tree22760f14ad4ed94d6d9bbaee02beb4b3c9f12f40 /source/blender/editors/sculpt_paint
parenta365ccd20eac888417b63b173e168d3338a5a45b (diff)
Sculpt: fix first partial redraw giving wrong bounds.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c3
1 files changed, 3 insertions, 0 deletions
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) {