Fix own error in r42881, didn't add rectangle padding correctly.
authorNicholas Bishop <nicholasbishop@gmail.com>
Mon, 26 Dec 2011 23:36:44 +0000 (23:36 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Mon, 26 Dec 2011 23:36:44 +0000 (23:36 +0000)
source/blender/editors/sculpt_paint/paint_utils.c

index c5e860c41eca44b73228d8f1c6d1d463dd0a40ad..fdacc2d15f51ac4b340ac24e0832a971bf1604e3 100644 (file)
@@ -129,12 +129,13 @@ void paint_calc_redraw_planes(float planes[4][4],
        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);
 }