From 0e553e9a395811781becf61540ed44ed9b44043d Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Wed, 18 Sep 2013 22:34:08 -0400 Subject: [PATCH] found hopefully a graceful way to deal with situations where gop abstraction/subpatch is open and we select the gop object on parent patch and therefore all its elements inside it (before it would highlight everything inside the subpatch which is confusing to deal with particularly if the edit mode is disabled) --- pd/src/g_graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pd/src/g_graph.c b/pd/src/g_graph.c index d1a07d495..dad14a604 100644 --- a/pd/src/g_graph.c +++ b/pd/src/g_graph.c @@ -1212,7 +1212,7 @@ static void graph_select(t_gobj *z, t_glist *glist, int state) t_gobj *g; //fprintf(stderr,"graph_select\n"); - if (x->gl_list) + if (x->gl_list && !glist_istoplevel(x)) for (g = x->gl_list; g; g = g->g_next) { //fprintf(stderr,"shouldvis %d\n",gobj_shouldvis(g, x)); if ((g && gobj_shouldvis(g, x) && (g->g_pd->c_wb->w_displacefnwtag != NULL) || (g && pd_class((t_pd *)g) == garray_class))) -- GitLab