From 910869c63967c19a4c1a2d99c924380ae8dd2f18 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jancsika@yahoo.com> Date: Tue, 8 Jul 2014 01:09:36 -0400 Subject: [PATCH] set arg to [objectinfo] to canvas level instead of object index. (Especially since index is likely to change with each message.) --- pd/src/x_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pd/src/x_interface.c b/pd/src/x_interface.c index d1411f409..0188648e2 100644 --- a/pd/src/x_interface.c +++ b/pd/src/x_interface.c @@ -1121,7 +1121,7 @@ void *objectinfo_new(t_floatarg f) t_objectinfo *x = (t_objectinfo *)pd_new(objectinfo_class); t_glist *glist = (t_glist *)canvas_getcurrent(); x->x_canvas = (t_canvas*)glist_getcanvas(glist); - x->x_index = f; + x->x_depth = f; floatinlet_new(&x->x_obj, &x->x_index); floatinlet_new(&x->x_obj, &x->x_depth); outlet_new(&x->x_obj, &s_anything); -- GitLab