Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rishabh Gupta
purr-data
Commits
1160a5c9
Commit
1160a5c9
authored
Oct 07, 2014
by
Ivica Bukvic
Browse files
*removed ugen connect error when autopatching (in the case we create a blank object)
parent
9b218b29
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/d_ugen.c
View file @
1160a5c9
...
...
@@ -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,8 +664,15 @@ 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
)
{
pd_error
(
u1
->
u_obj
,
"signal outlet connect to nonsignal inlet (ignored)"
);
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
))
pd_error
(
u1
->
u_obj
,
"signal outlet connect to nonsignal inlet (ignored)"
);
return
;
}
if
(
sigoutno
<
0
||
sigoutno
>=
u1
->
u_nout
||
siginno
>=
u2
->
u_nin
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment