From 1d7c4eb17e1d5dc0367ad66a8b94b55aea6f9b3b Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Sun, 4 Aug 2013 14:37:28 -0400 Subject: [PATCH] refined multiconnect's 3rd option and code comments for 2nd and 3rd option to reflect use with only 2 objects selected --- pd/src/g_editor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c index 473270873..86adcbc4f 100644 --- a/pd/src/g_editor.c +++ b/pd/src/g_editor.c @@ -3406,7 +3406,7 @@ int canvas_trymulticonnect(t_canvas *x, int xpos, int ypos, int which, int doit) return(return_val); // end of FIRST OPTION } - // SECOND OPTION: if more than two objects are selected and the one that is originating + // SECOND OPTION: if two or more objects are selected and the one that is originating // is not one of the selected, connect originating to all selected objects' the outlets // specified by the first connection else if (x->gl_editor->e_selection->sel_next && !glist_isselected(x, y1) && glist_isselected(x, y2)) @@ -3464,10 +3464,10 @@ int canvas_trymulticonnect(t_canvas *x, int xpos, int ypos, int which, int doit) // end of SECOND OPTION } - // THIRD OPTION: if more than two objects are selected and the one that is receiving connection + // THIRD OPTION: if two or more objects are selected and the one that is receiving connection // is one of the selected, and the target object is selected, connect nth outlet (as specified by // the first connection) from all selected objects into the inlet of the unselected one - else if (x->gl_editor->e_selection->sel_next->sel_next && glist_isselected(x, y1) && !glist_isselected(x, y2)) + else if (x->gl_editor->e_selection->sel_next && glist_isselected(x, y1) && !glist_isselected(x, y2)) { //fprintf(stderr,"third option\n"); ob1 = pd_checkobject(&y1->g_pd); -- GitLab