aboutsummaryrefslogtreecommitdiff
path: root/videogrid/videogrid.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-10-29 18:58:45 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-10-29 18:58:45 +0000
commitbbf416fbd1a443b13d6285728a354fbeda3004ac (patch)
tree20884e6f6103da2622b416a0dffbc8d9d1aedbe0 /videogrid/videogrid.c
parent3c050000c6918b77a353583999e6e810aa675fda (diff)
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
Diffstat (limited to 'videogrid/videogrid.c')
-rw-r--r--videogrid/videogrid.c3
1 files changed, 2 insertions, 1 deletions
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, ";");
}