Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2011-07-22 20:02:56 +0400
committerTon Roosendaal <ton@blender.org>2011-07-22 20:02:56 +0400
commiteed7702c9932653c68b72e291e30cbca3a741c16 (patch)
tree5ca611dfbafc405cf7961339c59838093c4e8b2f /source/blender/editors
parent89c062038aaa43e14bc280062fe94e13435bef46 (diff)
Small fix in drop-node-on-noodle: intersect code only did 3 edges of
node.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_node/node_edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c
index b5648b67d86..8cb7528c4d7 100644
--- a/source/blender/editors/space_node/node_edit.c
+++ b/source/blender/editors/space_node/node_edit.c
@@ -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;