From 620820b6836f0c7b3a3431d402a07dc25ee89adc 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/moonlib/; revision=8902 --- image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'image.c') diff --git a/image.c b/image.c index a9b5876..c9ceac4 100644 --- a/image.c +++ b/image.c @@ -173,7 +173,8 @@ static void image_save(t_gobj *z, t_binbuf *b) t_image *x = (t_image *)z; binbuf_addv(b, "ssiissi", gensym("#X"),gensym("obj"), x->x_obj.te_xpix, x->x_obj.te_ypix, - gensym("image"),x->x_image,x->x_type); + atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)), + x->x_image,x->x_type); binbuf_addv(b, ";"); } -- cgit v1.2.1