fix for bug in ED_view3d_project_float that only effected the 'Rip' tool.
[blender.git] / source / blender / editors / sculpt_paint / paint_utils.c
index 610c49ef27f703c2a668c498ab02568c3f3baa7a..dcd7554b7b84d5b7a3f1ed5b619b096142c339a8 100644 (file)
@@ -97,8 +97,7 @@ int paint_convert_bb_to_rect(rcti *rect,
                                vec[1] = j ? bb_min[1] : bb_max[1];
                                vec[2] = k ? bb_min[2] : bb_max[2];
                                /* convert corner to screen space */
-                               ED_view3d_project_float(ar, vec, proj,
-                                                                               projection_mat);
+                               ED_view3d_project_float_v2(ar, vec, proj, projection_mat);
                                /* expand 2D rectangle */
                                rect->xmin = MIN2(rect->xmin, proj[0]);
                                rect->xmax = MAX2(rect->xmax, proj[0]);