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:
authorJacques Lucke <jacques@blender.org>2020-11-03 17:09:14 +0300
committerJacques Lucke <jacques@blender.org>2020-11-03 17:11:40 +0300
commite699546bdeccd79d28d14a04cfdf1849ff6caed0 (patch)
tree507596d50ee9dd82bcdcad02952316ff9ae7a841 /source/blender/nodes/intern/node_socket.cc
parent313086e2129721135e4eec1ce08fd9d12e197efd (diff)
Fix T81756: relinking multiple links to group input removes links
The links where added to the socket one after the other. However, the virtual socket had a link limit of 1, so whenever a new link was added, the previously added one was removed. There is not really a reason for why the link limit should be 1 instead of something higher. I'm setting it to the max value: `0xFFF`. I'm also setting the `input_link_limit` to that value. Blender does not need this currently, but addons might have input sockets that allow more than one incident link.
Diffstat (limited to 'source/blender/nodes/intern/node_socket.cc')
-rw-r--r--source/blender/nodes/intern/node_socket.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/intern/node_socket.cc b/source/blender/nodes/intern/node_socket.cc
index 0cedc6597c8..116177a54b7 100644
--- a/source/blender/nodes/intern/node_socket.cc
+++ b/source/blender/nodes/intern/node_socket.cc
@@ -543,8 +543,8 @@ static bNodeSocketType *make_socket_type_virtual(void)
ED_init_node_socket_type_virtual(stype);
stype->use_link_limits_of_type = true;
- stype->input_link_limit = 1;
- stype->output_link_limit = 1;
+ stype->input_link_limit = 0xFFF;
+ stype->output_link_limit = 0xFFF;
return stype;
}