[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24154] branches/sculpt25/source/blender/ editors/sculpt_paint/sculpt.c: Sculpt: fix first partial redraw giving wrong bounds.

Brecht Van Lommel brecht at blender.org
Thu Oct 29 12:13:01 CET 2009


Revision: 24154
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24154
Author:   blendix
Date:     2009-10-29 12:12:59 +0100 (Thu, 29 Oct 2009)

Log Message:
-----------
Sculpt: fix first partial redraw giving wrong bounds.

Modified Paths:
--------------
    branches/sculpt25/source/blender/editors/sculpt_paint/sculpt.c

Modified: branches/sculpt25/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- branches/sculpt25/source/blender/editors/sculpt_paint/sculpt.c	2009-10-29 10:12:07 UTC (rev 24153)
+++ branches/sculpt25/source/blender/editors/sculpt_paint/sculpt.c	2009-10-29 11:12:59 UTC (rev 24154)
@@ -207,6 +207,9 @@
 	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) {





More information about the Bf-blender-cvs mailing list