diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2011-12-27 03:36:44 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2011-12-27 03:36:44 +0400 |
commit | ebf5cfb5ce9fbcd76e232ab92ecc85614a011e73 (patch) | |
tree | 6a7184dc2eca17eb33b846c439d2aa6018e00584 /source/blender/editors/sculpt_paint/paint_utils.c | |
parent | 8cc96408df7f3848ce7b7d3598c0caeb327e4f8c (diff) |
Fix own error in r42881, didn't add rectangle padding correctly.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_utils.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_utils.c b/source/blender/editors/sculpt_paint/paint_utils.c index c5e860c41ec..fdacc2d15f5 100644 --- a/source/blender/editors/sculpt_paint/paint_utils.c +++ b/source/blender/editors/sculpt_paint/paint_utils.c @@ -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); } |