Fix #119744: Regression: Geometry Nodes: Default input not working

Caused by 25a10c211f.

The socket_type field for socket declarations wasn't set for declarations
created from the node group interface DNA tree structure. Arguably the
socket types should be set by the constructors, but setting it in one more
place isn't bad either, and is a simple fix for now.
This commit is contained in:
Hans Goudey 2024-03-21 13:18:19 -04:00
parent d8a89aa972
commit 575a5c0502
1 changed files with 1 additions and 0 deletions

View File

@ -318,6 +318,7 @@ static SocketDeclarationPtr declaration_for_interface_socket(
dst->name = io_socket.name ? io_socket.name : "";
dst->identifier = io_socket.identifier;
dst->in_out = in_out;
dst->socket_type = datatype;
dst->description = io_socket.description ? io_socket.description : "";
dst->hide_value = io_socket.flag & NODE_INTERFACE_SOCKET_HIDE_VALUE;
dst->compact = io_socket.flag & NODE_INTERFACE_SOCKET_COMPACT;