Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-12-14 17:30:45 +0300
committerHans Goudey <h.goudey@me.com>2021-12-14 17:30:45 +0300
commitb44a500988f3d6aea631d17ca383c8ced55e4371 (patch)
tree157dc33178e49f0a1000c18ce02a541878a43c3f
parentb5c18288f5bdcc95ac012a1ee32d1e2859a97779 (diff)
Fix T93920: Wrong field inferencing state with unavailable socket
This commit ignores unavailable sockets in one more place, to fix the case in T93920. Differential Revision: https://developer.blender.org/D13562
-rw-r--r--source/blender/blenkernel/intern/node.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/node.cc b/source/blender/blenkernel/intern/node.cc
index a78917ab0a3..a4de6730f8f 100644
--- a/source/blender/blenkernel/intern/node.cc
+++ b/source/blender/blenkernel/intern/node.cc
@@ -4748,7 +4748,9 @@ static void propagate_data_requirements_from_right_to_left(
/* The output is required to be a single value when it is connected to any input that does
* not support fields. */
for (const InputSocketRef *target_socket : output_socket->directly_linked_sockets()) {
- state.requires_single |= field_state_by_socket_id[target_socket->id()].requires_single;
+ if (target_socket->is_available()) {
+ state.requires_single |= field_state_by_socket_id[target_socket->id()].requires_single;
+ }
}
if (state.requires_single) {