diff --git a/source/blender/editors/sculpt_paint/paint_intern.hh b/source/blender/editors/sculpt_paint/paint_intern.hh index 449f14b50a3..e7d50b68c45 100644 --- a/source/blender/editors/sculpt_paint/paint_intern.hh +++ b/source/blender/editors/sculpt_paint/paint_intern.hh @@ -431,16 +431,6 @@ bool paint_convert_bb_to_rect(rcti *rect, const RegionView3D &rv3d, const Object &ob); -/** - * Get four planes in object-space that describe the projection of - * screen_rect from screen into object-space (essentially converting a - * 2D screens-space bounding box into four 3D planes). - */ -void paint_calc_redraw_planes(float planes[4][4], - const ARegion ®ion, - const Object &ob, - const rcti &screen_rect); - float paint_calc_object_space_radius(const ViewContext &vc, const blender::float3 ¢er, float pixel_radius); diff --git a/source/blender/editors/sculpt_paint/paint_utils.cc b/source/blender/editors/sculpt_paint/paint_utils.cc index e671151397a..ffc72fde2bd 100644 --- a/source/blender/editors/sculpt_paint/paint_utils.cc +++ b/source/blender/editors/sculpt_paint/paint_utils.cc @@ -107,24 +107,6 @@ bool paint_convert_bb_to_rect(rcti *rect, return rect->xmin < rect->xmax && rect->ymin < rect->ymax; } -void paint_calc_redraw_planes(float planes[4][4], - const ARegion ®ion, - const Object &ob, - const rcti &screen_rect) -{ - BoundBox bb; - rcti rect; - - /* use some extra space just in case */ - rect = screen_rect; - rect.xmin -= 2; - rect.xmax += 2; - rect.ymin -= 2; - rect.ymax += 2; - - ED_view3d_clipping_calc(&bb, planes, ®ion, &ob, &rect); -} - float paint_calc_object_space_radius(const ViewContext &vc, const blender::float3 ¢er, const float pixel_radius)