diff options
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_utils.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_utils.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_utils.c b/source/blender/editors/sculpt_paint/paint_utils.c index c3f555e032b..29acc28df47 100644 --- a/source/blender/editors/sculpt_paint/paint_utils.c +++ b/source/blender/editors/sculpt_paint/paint_utils.c @@ -55,7 +55,6 @@ #include "RNA_define.h" #include "BIF_gl.h" -/* TODO: remove once projectf goes away */ #include "BIF_glutil.h" #include "RE_shader_ext.h" @@ -145,19 +144,6 @@ void paint_calc_redraw_planes(float planes[4][4], mul_m4_fl(planes, -1.0f); } -/* convert a point in model coordinates to 2D screen coordinates */ -/* TODO: can be deleted once all calls are replaced with - * view3d_project_float() */ -void projectf(bglMats *mats, const float v[3], float p[2]) -{ - double ux, uy, uz; - - gluProject(v[0], v[1], v[2], mats->modelview, mats->projection, - (GLint *)mats->viewport, &ux, &uy, &uz); - p[0] = ux; - p[1] = uy; -} - float paint_calc_object_space_radius(ViewContext *vc, const float center[3], float pixel_radius) { |