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
Aayush
purr-data
Commits
415b5b82
Commit
415b5b82
authored
Sep 10, 2014
by
Ivica Bukvic
Browse files
*fixed bug with preset_node status being corrupt with the status outlet
parent
20879ac9
Changes
2
Hide whitespace changes
Inline
Side-by-side
pd/src/g_editor.c
View file @
415b5b82
...
...
@@ -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
);
...
...
pd/src/x_preset.c
View file @
415b5b82
...
...
@@ -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
)
...
...
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