Fix #113128: Socket hide value not copied to group input

This needs to be copied explicitly to the interface socket.

Pull Request: https://projects.blender.org/blender/blender/pulls/113286
This commit is contained in:
Hans Goudey
2023-10-06 00:43:45 +02:00
committed by Hans Goudey
parent 97dfbc9a63
commit ecb52140cd

View File

@@ -663,6 +663,9 @@ void bNodeTreeInterfaceSocket::init_from_socket_instance(const bNodeSocket *sock
MEM_SAFE_FREE(this->socket_data);
}
MEM_SAFE_FREE(this->socket_type);
if (socket->flag & SOCK_HIDE_VALUE) {
this->flag |= NODE_INTERFACE_SOCKET_HIDE_VALUE;
}
this->socket_type = BLI_strdup(idname);
this->socket_data = socket_types::make_socket_data(idname);