From 2407b8a61f848ad42957f73666e891b6af5f0e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 31 Oct 2007 11:37:45 +0000 Subject: query the objects real name instead of assuming that you already know it svn path=/trunk/externals/iem/iemgui/; revision=8917 --- src/cube_sphere.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cube_sphere.c') diff --git a/src/cube_sphere.c b/src/cube_sphere.c index ed38b7a..9c65984 100644 --- a/src/cube_sphere.c +++ b/src/cube_sphere.c @@ -261,7 +261,8 @@ static void cube_sphere_save(t_gobj *z, t_binbuf *b) int i, j, c, n=x->x_n_src; binbuf_addv(b, "ssiis", gensym("#X"),gensym("obj"), - (t_int)x->x_gui.x_obj.te_xpix, (t_int)x->x_gui.x_obj.te_ypix, gensym("cube_sphere")); + (t_int)x->x_gui.x_obj.te_xpix, (t_int)x->x_gui.x_obj.te_ypix, + atom_getsymbol(binbuf_getvec(x->x_gui.x_obj.te_binbuf))); if(x->x_null) binbuf_addv(b, "iii", 0, x->x_radius, x->x_fontsize); else -- cgit v1.2.1