code cleanup
[blender.git] / source / blender / editors / sculpt_paint / paint_utils.c
index 99bc192042c03b06b8202bdc121578e61014368f..df64e1c9d90264aaf12530ddf86490ffe46c362f 100644 (file)
@@ -159,14 +159,12 @@ float paint_calc_object_space_radius(ViewContext *vc, const float center[3],
 {
        Object *ob = vc->obact;
        float delta[3], scale, loc[3];
-       float mval_f[2];
+       const float mval_f[2] = {pixel_radius, 0.0f};
 
        mul_v3_m4v3(loc, ob->obmat, center);
 
        initgrabz(vc->rv3d, loc[0], loc[1], loc[2]);
 
-       mval_f[0] = pixel_radius;
-       mval_f[1] = 0.0f;
        ED_view3d_win_to_delta(vc->ar, mval_f, delta);
 
        scale = fabsf(mat4_to_scale(ob->obmat));