Fix T91241: wrong labels and identifiers for id sockets

`nodeAddSocket` expects the name and identifier in a
different order.
This commit is contained in:
Jacques Lucke 2021-09-08 15:57:05 +02:00
parent 96ef184377
commit 6bc6ffc35c
Notes: blender-bot 2023-02-14 08:42:53 +01:00
Referenced by issue #91241, Texture Switch node crashes blender when connected
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}