Commit 415b5b82 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*fixed bug with preset_node status being corrupt with the status outlet

parent 20879ac9
......@@ -3805,7 +3805,7 @@ int canvas_doconnect_doit(t_canvas *x, t_gobj *y1, t_gobj *y2,
error("preset_node does not work with messages.");
return(1);
}
if (obj_noutlets(ob2) == 0)
if (obj_noutlets(ob2) == 0 && pd_class(&y2->g_pd) != print_class)
{
error("preset_node does not work with objects with zero "
"or undefined number of outlets\n");
......@@ -3880,7 +3880,11 @@ int canvas_doconnect_doit(t_canvas *x, t_gobj *y1, t_gobj *y2,
{
//fprintf(stderr,"gotta do auto-connect back to preset_node\n");
// second check is to make sure we are not connected to the
// second outlet of the preset_node in which case we should not
// connect back to it
if (!canvas_isconnected(x, ob2, 0, ob1, 0) &&
!canvas_isconnected(x, ob1, 1, ob2, 0) &&
pd_class(&y2->g_pd) != print_class)
{
oc2 = obj_connect(ob2, 0, ob1, 0);
......
......@@ -529,7 +529,7 @@ static int preset_node_location_changed(t_preset_node *x)
static void preset_node_anything(t_preset_node *x, t_symbol *s, int argc, t_atom *argv)
{
if (PH_DEBUG) fprintf(stderr,"preset_node_anything %lx\n", (t_int)x);
if (PH_DEBUG) fprintf(stderr,"preset_node_anything %lx %s %d\n", (t_int)x, s->s_name, argc);
int i;
alist_list(&x->pn_val, 0, argc, argv);
if (PH_DEBUG)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment