Fix T95543: incorrect handling of implicit field inputs in ui

This commit is contained in:
Jacques Lucke 2022-02-07 18:44:30 +01:00
parent eb071e3d3c
commit 65d287a14a
Notes: blender-bot 2023-02-14 08:38:11 +01:00
Referenced by issue #95543, Transferred Attribute from Group Node is displayed with a circle socket and solid line
1 changed files with 6 additions and 0 deletions

View File

@ -273,6 +273,12 @@ static OutputFieldDependency find_group_output_dependencies(
while (!sockets_to_check.is_empty()) {
const InputSocketRef *input_socket = sockets_to_check.pop();
if (!input_socket->is_directly_linked() &&
!field_state_by_socket_id[input_socket->id()].is_single) {
/* This socket uses a field as input by default. */
return OutputFieldDependency::ForFieldSource();
}
for (const OutputSocketRef *origin_socket : input_socket->directly_linked_sockets()) {
const NodeRef &origin_node = origin_socket->node();
const SocketFieldState &origin_state = field_state_by_socket_id[origin_socket->id()];