code cleanup
[blender.git] / source / blender / editors / physics / particle_edit.c
index 72d2d67e08127bfda4b77e45ae1e7573a59bae57..3ed31abca942360e8be5fd52b4ba1eef929a04d6 100644 (file)
@@ -3540,7 +3540,7 @@ static void brush_edit_apply(bContext *C, wmOperator *op, PointerRNA *itemptr)
                        switch (pset->brushtype) {
                                case PE_BRUSH_COMB:
                                {
-                                       float mval_f[2];
+                                       const float mval_f[2] = {dx, dy};
                                        data.mval= mval;
                                        data.rad= (float)brush->size;
 
@@ -3552,8 +3552,6 @@ static void brush_edit_apply(bContext *C, wmOperator *op, PointerRNA *itemptr)
 
                                        invert_m4_m4(ob->imat, ob->obmat);
 
-                                       mval_f[0]= dx;
-                                       mval_f[1]= dy;
                                        ED_view3d_win_to_delta(ar, mval_f, vec);
                                        data.dvec= vec;