From 88923be907188c31e4bcab5e2d9fcfa5754a8bfb Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 29 Oct 2007 18:58:45 +0000 Subject: Following this thread: http://lists.puredata.info/pipermail/pd-dev/2007-10/009797.html I have changed the save functions so that they will save the name of the object that it was actually instantiated with. This allows objects with savefns to work properly with namespaces. This is a fix for this bug: http://sourceforge.net/tracker/index.php?&aid=1818219&group_id=55736&atid=478070 svn path=/trunk/externals/unauthorized/; revision=8902 --- pianoroll/pianoroll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pianoroll') diff --git a/pianoroll/pianoroll.c b/pianoroll/pianoroll.c index 8bb0c2f..05b5ae7 100644 --- a/pianoroll/pianoroll.c +++ b/pianoroll/pianoroll.c @@ -264,7 +264,8 @@ static void pianoroll_save(t_gobj *z, t_binbuf *b) // post( "saving pianoroll : %s", x->x_name->s_name ); binbuf_addv(b, "ssiissiiffiiifi", gensym("#X"),gensym("obj"), (t_int)x->x_obj.te_xpix, (t_int)x->x_obj.te_ypix, - gensym("pianoroll"), x->x_name, x->x_width, x->x_height, + atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)), + x->x_name, x->x_width, x->x_height, x->x_pmin, x->x_pmax, x->x_nbgrades, x->x_nbsteps, x->x_defvalue, x->x_transpose, x->x_save -- cgit v1.2.1