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/physics | |
parent | 774cc0ab1663a5d31eeda797ac71c5143086ca98 (diff) |
code cleanup
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 72d2d67e081..3ed31abca94 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -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; |