From bbf416fbd1a443b13d6285728a354fbeda3004ac 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/pdvjtools/; revision=8902 --- videogrid/videogrid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'videogrid/videogrid.c') diff --git a/videogrid/videogrid.c b/videogrid/videogrid.c index b2b6587..d8701ec 100644 --- a/videogrid/videogrid.c +++ b/videogrid/videogrid.c @@ -584,7 +584,8 @@ static void videogrid_save(t_gobj *z, t_binbuf *b) binbuf_addv(b, "ssiissiisss", gensym("#X"),gensym("obj"), x->x_obj.te_xpix, x->x_obj.te_ypix, - gensym("videogrid"),x->x_name,x->x_num_fil,x->x_num_col,x->x_color_fons,x->x_color_marc,gensym(cadenaPathsInicials)); + atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)), + x->x_name,x->x_num_fil,x->x_num_col,x->x_color_fons,x->x_color_marc,gensym(cadenaPathsInicials)); binbuf_addv(b, ";"); } -- cgit v1.2.1