From f17507401e4e6836e0d4810b62ec1fe1851bc156 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/pidip/; revision=8902 --- modules/pdp_colorgrid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/pdp_colorgrid.c b/modules/pdp_colorgrid.c index fb2c0c3..bf73ed7 100644 --- a/modules/pdp_colorgrid.c +++ b/modules/pdp_colorgrid.c @@ -415,7 +415,8 @@ static void pdp_colorgrid_save(t_gobj *z, t_binbuf *b) // post( "saving pdp_colorgrid : %s", x->x_name->s_name ); binbuf_addv(b, "ssiissiffiffiffiiff", gensym("#X"),gensym("obj"), (int)x->x_obj.te_xpix, (int)x->x_obj.te_ypix, - gensym("pdp_colorgrid"), x->x_name, x->x_width, x->x_min, + atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)), + x->x_name, x->x_width, x->x_min, x->x_max, x->x_height, x->y_min, x->y_max, x->x_pdp_colorgrid, x->x_xstep, -- cgit v1.2.1