Commit 1160a5c9 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*removed ugen connect error when autopatching (in the case we create a blank object)

parent 9b218b29
......@@ -643,6 +643,9 @@ void ugen_add(t_dspcontext *dc, t_object *obj)
uout->o_connections = 0, uout->o_nconnect = 0;
extern t_class *text_class;
#include <stdio.h>
/* and then this to make all the connections. */
void ugen_connect(t_dspcontext *dc, t_object *x1, int outno, t_object *x2,
int inno)
......@@ -661,6 +664,13 @@ void ugen_connect(t_dspcontext *dc, t_object *x1, int outno, t_object *x2,
for (u2 = dc->dc_ugenlist; u2 && u2->u_obj != x2; u2 = u2->u_next);
if (!u1 || !u2 || siginno < 0)
t_text *t2 = (t_text *)x2;
// The following only happens if the DAC is on while connecting
// objects. If this is not yet initialized object we don't
// really know if its inlet is signal or not, so we don't post
// the error.
if (pd_class(&t2->te_pd) != text_class ||
(pd_class(&t2->te_pd) == text_class && t2->te_type == T_TEXT))
"signal outlet connect to nonsignal inlet (ignored)");
Supports Markdown
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