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
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-04-02 02:28:00 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-04-02 02:28:00 +0400
commit53e91df19644a91a593e7711b08cadaa06071b90 (patch)
tree5f3535fde9e8eae52b3f6532982b2a5d8bc366c0 /source
parentc68588ea988bb2c454ae01936b86a7a84b0420a4 (diff)
Fix for bug #7875: node editor creates links to nowhere, fixes at
least one instance where it happens, when dragging a link onto an already taken socket, and the existing link being moved to a hidden socket. Couldn't find other cases in testing, so assuming it's fixed unless another case pops up.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/editnode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/editnode.c b/source/blender/src/editnode.c
index 010cbc7f14d..feae8bfec1a 100644
--- a/source/blender/src/editnode.c
+++ b/source/blender/src/editnode.c
@@ -1714,8 +1714,10 @@ static void node_remove_extra_links(SpaceNode *snode, bNodeSocket *tsock, bNodeL
if(nodeCountSocketLinks(snode->edittree, sock) < sock->limit)
break;
}
- if(sock)
+ if(sock) {
tlink->tosock= sock;
+ sock->flag &= ~SOCK_HIDDEN;
+ }
else {
nodeRemLink(snode->edittree, tlink);
}