diff options
author | Jacques Lucke <jacques@blender.org> | 2021-09-24 11:30:13 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-09-24 11:55:23 +0300 |
commit | 7ca48a38147fa3b8bf816316df4cc1034b099b19 (patch) | |
tree | 3f0ac297ee351d3cd5082653d631a533357c9ce1 | |
parent | f8a0e102cf5e33f92447fe6cd6db7838f6051aab (diff) |
Fix: incorrect socket shape for noise texture input
-rw-r--r-- | source/blender/blenkernel/intern/node.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/node.cc b/source/blender/blenkernel/intern/node.cc index 3f4e6281ca7..7fd681960cf 100644 --- a/source/blender/blenkernel/intern/node.cc +++ b/source/blender/blenkernel/intern/node.cc @@ -4519,13 +4519,17 @@ static InputSocketFieldType get_interface_input_field_type(const NodeRef &node, /* Node declarations should be implemented for nodes involved here. */ BLI_assert(node_decl != nullptr); + /* Get the field type from the declaration. */ + const SocketDeclaration &socket_decl = *node_decl->inputs()[socket.index()]; + const InputSocketFieldType field_type = socket_decl.input_field_type(); + if (field_type == InputSocketFieldType::Implicit) { + return field_type; + } if (node_decl->is_function_node()) { /* In a function node, every socket supports fields. */ return InputSocketFieldType::IsSupported; } - /* Get the field type from the declaration. */ - const SocketDeclaration &socket_decl = *node_decl->inputs()[socket.index()]; - return socket_decl.input_field_type(); + return field_type; } static OutputFieldDependency get_interface_output_field_dependency(const NodeRef &node, |