Cleanup: Remove unused paint_utils.cc method
Pull Request: https://projects.blender.org/blender/blender/pulls/141640
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user