[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42884] trunk/blender/source/blender/ editors/sculpt_paint/paint_utils.c: Fix own error in r42881, didn' t add rectangle padding correctly.

Nicholas Bishop nicholasbishop at gmail.com
Tue Dec 27 00:36:56 CET 2011


Revision: 42884
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42884
Author:   nicholasbishop
Date:     2011-12-26 23:36:44 +0000 (Mon, 26 Dec 2011)
Log Message:
-----------
Fix own error in r42881, didn't add rectangle padding correctly.

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42881

Modified Paths:
--------------
    trunk/blender/source/blender/editors/sculpt_paint/paint_utils.c

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_utils.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_utils.c	2011-12-26 21:39:16 UTC (rev 42883)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_utils.c	2011-12-26 23:36:44 UTC (rev 42884)
@@ -129,12 +129,13 @@
 	view3d_get_transformation(ar, rv3d, ob, &mats);
 
 	/* use some extra space just in case */
+	rect = *screen_rect;
 	rect.xmin -= 2;
 	rect.xmax += 2;
 	rect.ymin -= 2;
 	rect.ymax += 2;
 
-	ED_view3d_calc_clipping(&bb, planes, &mats, screen_rect);
+	ED_view3d_calc_clipping(&bb, planes, &mats, &rect);
 	mul_m4_fl(planes, -1.0f);
 }
 




More information about the Bf-blender-cvs mailing list