diff options
author | Cyrille Henry <nusmuk@users.sourceforge.net> | 2013-06-04 13:24:35 +0000 |
---|---|---|
committer | Cyrille Henry <nusmuk@users.sourceforge.net> | 2013-06-04 13:24:35 +0000 |
commit | 96382b7eb561d0e6231a1d665eaf878d22fe7b7e (patch) | |
tree | 373cf430784962902e72bcefe930893ae2968339 | |
parent | 14bb2e332cafa06ebe0c6e402ec1521a095e4255 (diff) |
debug same problem than in 2d : mass was not correctly set at creation.
svn path=/trunk/externals/pmpd/; revision=17147
-rw-r--r-- | pmpd3d_core.c | 2 | ||||
-rw-r--r-- | pmpd_core.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pmpd3d_core.c b/pmpd3d_core.c index 8325514..5925c7a 100644 --- a/pmpd3d_core.c +++ b/pmpd3d_core.c @@ -197,7 +197,7 @@ void pmpd3d_mass(t_pmpd3d *x, t_symbol *s, int argc, t_atom *argv) x->mass[x->nb_mass].mobile = (int) atom_getfloatarg(1, argc, argv); t_float M = 1; if ((argc >= 3) && (argv[2].a_type == A_FLOAT)) - M = atom_getfloatarg(3, argc, argv); + M = atom_getfloatarg(2, argc, argv); if (M<=0) M=1; x->mass[x->nb_mass].invM = 1/M; x->mass[x->nb_mass].speedX = 0; diff --git a/pmpd_core.c b/pmpd_core.c index 22f879b..f6eaa2f 100644 --- a/pmpd_core.c +++ b/pmpd_core.c @@ -140,7 +140,7 @@ void pmpd_mass(t_pmpd *x, t_symbol *s, int argc, t_atom *argv) x->mass[x->nb_mass].mobile = (int) atom_getfloatarg(1, argc, argv); t_float M = 1; if ((argc >= 3) && (argv[2].a_type == A_FLOAT)) - M = atom_getfloatarg(3, argc, argv); + M = atom_getfloatarg(2, argc, argv); if (M<=0) M=1; x->mass[x->nb_mass].invM = 1/M; x->mass[x->nb_mass].speedX = 0; |