diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-07 03:41:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-07 03:41:03 +0400 |
commit | 0ecbc047e8a540175b00ed967050abb5f7363dbc (patch) | |
tree | fdf8a8011f919fb606b07d357a3be8b9606bf592 /source/blender/editors/sculpt_paint/paint_utils.c | |
parent | 774cc0ab1663a5d31eeda797ac71c5143086ca98 (diff) |
code cleanup
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_utils.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_utils.c b/source/blender/editors/sculpt_paint/paint_utils.c index 99bc192042c..df64e1c9d90 100644 --- a/source/blender/editors/sculpt_paint/paint_utils.c +++ b/source/blender/editors/sculpt_paint/paint_utils.c @@ -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)); |