From fed569060c1f10dc85302caa518fcdbcabef000a Mon Sep 17 00:00:00 2001 From: Thomas O Fredericks Date: Mon, 11 Oct 2010 19:00:24 +0000 Subject: Fixed a fix in updating the gui when it was created by param gui. param route also changes empty messages into bangs svn path=/trunk/externals/tof/; revision=14225 --- src/paramGui.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/paramGui.h') diff --git a/src/paramGui.h b/src/paramGui.h index fb9f7c4..96a23b6 100644 --- a/src/paramGui.h +++ b/src/paramGui.h @@ -282,12 +282,13 @@ static void paramGui_buildCanvas(t_paramGui* x,int x_position,int y_position) { pos_y = pos_y + GUI_Y_STEP; gui_update = 0; } - - if ((gui_update) && (receive != s_empty) && (p->get) && (ac_got)) { + //p->get(p->x,&s_got,&ac_got,&av_got); + //post("path: %s selector: %s ac: %i update: %i",p->path->s_name,s_got->s_name,ac_got,gui_update); + if ((gui_update) && (receive != s_empty) && (p->get) ) { p->get(p->x,&s_got,&ac_got,&av_got); - //post("path: %s selector: %s ac: %i",p->path->s_name,s_got->s_name,ac_got); - if ( s_got != &s_bang) tof_send_anything_prepend(receive,s_got,ac_got,av_got,s_set); + + if ( s_got != &s_bang && ac_got) tof_send_anything_prepend(receive,s_got,ac_got,av_got,s_set); } } -- cgit v1.2.1