diff options
author | Jacques Lucke <jacques@blender.org> | 2022-02-07 20:44:30 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-02-07 20:44:30 +0300 |
commit | 65d287a14a4081fc30535a2c17f0e64819401564 (patch) | |
tree | 159605c7166c08ed3277e39b66c941bc7c3eadbe /source/blender | |
parent | eb071e3d3cae0033582a269b5fbdd859d5532ce4 (diff) |
Fix T95543: incorrect handling of implicit field inputs in ui
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/node_tree_update.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/node_tree_update.cc b/source/blender/blenkernel/intern/node_tree_update.cc index 0555707b64c..904a0de9a90 100644 --- a/source/blender/blenkernel/intern/node_tree_update.cc +++ b/source/blender/blenkernel/intern/node_tree_update.cc @@ -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()]; |