Skip to content
Snippets Groups Projects
Commit 60f334b5 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

fixed redrawing logic of nlets on graphs under certain circumstances

parent 506b0c5c
No related branches found
No related tags found
No related merge requests found
...@@ -359,6 +359,7 @@ void glist_free(t_glist *x) ...@@ -359,6 +359,7 @@ void glist_free(t_glist *x)
t_inlet *canvas_addinlet(t_canvas *x, t_pd *who, t_symbol *s) t_inlet *canvas_addinlet(t_canvas *x, t_pd *who, t_symbol *s)
{ {
//fprintf(stderr,"canvas_addinlet %d %lx %d\n", x->gl_loading, x->gl_owner, glist_isvisible(x->gl_owner));
t_inlet *ip = inlet_new(&x->gl_obj, who, s, 0); t_inlet *ip = inlet_new(&x->gl_obj, who, s, 0);
if (!x->gl_loading && x->gl_owner && glist_isvisible(x->gl_owner)) if (!x->gl_loading && x->gl_owner && glist_isvisible(x->gl_owner))
{ {
...@@ -758,11 +759,11 @@ void glist_redraw(t_glist *x) ...@@ -758,11 +759,11 @@ void glist_redraw(t_glist *x)
canvas_drawredrect(x, 1); canvas_drawredrect(x, 1);
} }
} }
if (x->gl_owner && glist_isvisible(x->gl_owner)) }
{ if (x->gl_owner && glist_isvisible(x->gl_owner))
graph_vis(&x->gl_gobj, x->gl_owner, 0); {
graph_vis(&x->gl_gobj, x->gl_owner, 1); graph_vis(&x->gl_gobj, x->gl_owner, 0);
} graph_vis(&x->gl_gobj, x->gl_owner, 1);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment