Update of /cvsroot/pure-data/externals/moonlib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1599/moonlib
Modified Files: gamme.c image.c mknob.c Log Message:
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...
Index: mknob.c =================================================================== RCS file: /cvsroot/pure-data/externals/moonlib/mknob.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mknob.c 11 Jul 2007 16:40:24 -0000 1.2 --- mknob.c 29 Oct 2007 18:58:43 -0000 1.3 *************** *** 269,273 **** binbuf_addv(b, "ssiisiiffiisssiiiiiiiii", gensym("#X"),gensym("obj"), (t_int)x->x_gui.x_obj.te_xpix, (t_int)x->x_gui.x_obj.te_ypix, ! gensym("mknob"), x->x_gui.x_w, x->x_gui.x_h, (float)x->x_min, (float)x->x_max, x->x_lin0_log1, (*ip1)&IEM_INIT_ARGS_ALL, --- 269,274 ---- binbuf_addv(b, "ssiisiiffiisssiiiiiiiii", gensym("#X"),gensym("obj"), (t_int)x->x_gui.x_obj.te_xpix, (t_int)x->x_gui.x_obj.te_ypix, ! atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)), ! x->x_gui.x_w, x->x_gui.x_h, (float)x->x_min, (float)x->x_max, x->x_lin0_log1, (*ip1)&IEM_INIT_ARGS_ALL,
Index: image.c =================================================================== RCS file: /cvsroot/pure-data/externals/moonlib/image.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** image.c 11 Jul 2007 16:40:24 -0000 1.2 --- image.c 29 Oct 2007 18:58:43 -0000 1.3 *************** *** 174,178 **** 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); binbuf_addv(b, ";"); } --- 174,179 ---- binbuf_addv(b, "ssiissi", gensym("#X"),gensym("obj"), x->x_obj.te_xpix, x->x_obj.te_ypix, ! atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)), ! x->x_image,x->x_type); binbuf_addv(b, ";"); }
Index: gamme.c =================================================================== RCS file: /cvsroot/pure-data/externals/moonlib/gamme.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** gamme.c 11 Jul 2007 16:56:03 -0000 1.3 --- gamme.c 29 Oct 2007 18:58:43 -0000 1.4 *************** *** 301,305 **** binbuf_addv(b, "ssiisiiiiiiiiiiiiii", gensym("#X"),gensym("obj"), (t_int)x->x_obj.te_xpos, (t_int)x->x_obj.te_ypos, ! gensym("gamme"),x->x_width,x->x_height, c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11]); binbuf_addv(b, ";"); --- 301,306 ---- binbuf_addv(b, "ssiisiiiiiiiiiiiiii", gensym("#X"),gensym("obj"), (t_int)x->x_obj.te_xpos, (t_int)x->x_obj.te_ypos, ! atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)), ! x->x_width,x->x_height, c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11]); binbuf_addv(b, ";");