Small fix in drop-node-on-noodle: intersect code only did 3 edges of
authorTon Roosendaal <ton@blender.org>
Fri, 22 Jul 2011 16:02:56 +0000 (16:02 +0000)
committerTon Roosendaal <ton@blender.org>
Fri, 22 Jul 2011 16:02:56 +0000 (16:02 +0000)
node.

source/blender/editors/space_node/node_edit.c

index b5648b67d86504feab5f244af698544c4a887bb2..8cb7528c4d7c4be8ba2299b3a2018b748887bc88 100644 (file)
@@ -2577,7 +2577,7 @@ void ED_node_link_intersect_test(ScrArea *sa, int test)
        bNode *select;
        SpaceNode *snode= ed_node_link_conditions(sa, &select);
        bNodeLink *link, *selink=NULL;
-       float mcoords[4][2];
+       float mcoords[5][2];
        
        if(snode==NULL) return;
        
@@ -2601,7 +2601,7 @@ void ED_node_link_intersect_test(ScrArea *sa, int test)
        /* idea; use header dist when more? */
        for(link= snode->edittree->links.first; link; link=link->next) {
                
-               if(cut_links_intersect(link, mcoords, 4)) {
+               if(cut_links_intersect(link, mcoords, 5)) { /* 5 - silly intersect code */
                        if(selink) 
                                break;
                        selink= link;