[Bf-blender-cvs] [7ca48a38147] master: Fix: incorrect socket shape for noise texture input
Jacques Lucke
noreply at git.blender.org
Fri Sep 24 10:55:48 CEST 2021
Commit: 7ca48a38147fa3b8bf816316df4cc1034b099b19
Author: Jacques Lucke
Date: Fri Sep 24 10:30:13 2021 +0200
Branches: master
https://developer.blender.org/rB7ca48a38147fa3b8bf816316df4cc1034b099b19
Fix: incorrect socket shape for noise texture input
===================================================================
M source/blender/blenkernel/intern/node.cc
===================================================================
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,
More information about the Bf-blender-cvs
mailing list