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>2021-09-08 16:57:05 +0300
committerJacques Lucke <jacques@blender.org>2021-09-08 16:57:22 +0300
commit6bc6ffc35c58ca4ac1ac1a55367e20fc06f5fe3a (patch)
treeb470bd6f610452d992b35c8b6bf669c1fcda5478
parent96ef1843776f22c3a4cee6280740be93ce08615f (diff)
Fix T91241: wrong labels and identifiers for id sockets
`nodeAddSocket` expects the name and identifier in a different order.
-rw-r--r--source/blender/nodes/intern/node_socket_declarations.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/node_socket_declarations.cc b/source/blender/nodes/intern/node_socket_declarations.cc
index 418fed146fb..ba9a1870b0c 100644
--- a/source/blender/nodes/intern/node_socket_declarations.cc
+++ b/source/blender/nodes/intern/node_socket_declarations.cc
@@ -274,7 +274,7 @@ bNodeSocket &build_id_socket(bNodeTree &ntree,
StringRefNull identifier)
{
bNodeSocket &socket = *nodeAddSocket(
- &ntree, &node, in_out, data.idname, name.c_str(), identifier.c_str());
+ &ntree, &node, in_out, data.idname, identifier.c_str(), name.c_str());
if (data.hide_label) {
socket.flag |= SOCK_HIDE_LABEL;
}