diff options
author | Cyrille Henry <nusmuk@users.sourceforge.net> | 2014-08-25 12:46:52 +0000 |
---|---|---|
committer | Cyrille Henry <nusmuk@users.sourceforge.net> | 2014-08-25 12:46:52 +0000 |
commit | d95fc3a7109f68cf672f9849c9042fcc357dad45 (patch) | |
tree | 955dac850e4c3a9d578306ea3cae80e20df2dc6d | |
parent | f45e8f73be55206441581aa71f26fa2b5c5a1a57 (diff) |
init correction for closestMass
svn path=/trunk/externals/pmpd/; revision=17340
-rw-r--r-- | pmpd2d_various.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pmpd2d_various.c b/pmpd2d_various.c index 9eb9248..7a31c4f 100644 --- a/pmpd2d_various.c +++ b/pmpd2d_various.c @@ -346,6 +346,7 @@ void pmpd2d_closestMass(t_pmpd2d *x, t_symbol *s, int argc, t_atom *argv)// t_fl else { if ((x->nb_mass > 0)) { + x->grab_nb= 0; dist = sqr(x->mass[0].posX - posX) + sqr(x->mass[0].posY - posY); for (i=1; i<x->nb_mass; i++) { |