Fix T91241: wrong labels and identifiers for id sockets
`nodeAddSocket` expects the name and identifier in a different order.
This commit is contained in:
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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue