Cleanup: Remove unused paint_utils.cc method

Pull Request: https://projects.blender.org/blender/blender/pulls/141640
This commit is contained in:
Sean Kim
2025-07-09 02:01:37 +02:00
committed by Sean Kim
parent f80a3e5cbc
commit feec97bf51
2 changed files with 0 additions and 28 deletions

View File

@@ -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 &region,
const Object &ob,
const rcti &screen_rect);
float paint_calc_object_space_radius(const ViewContext &vc,
const blender::float3 &center,
float pixel_radius);

View File

@@ -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 &region,
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, &region, &ob, &rect);
}
float paint_calc_object_space_radius(const ViewContext &vc,
const blender::float3 &center,
const float pixel_radius)