Fix T91979: Don't mark string nodes as supporting fields

Even though these nodes do support fields internally, there are no
input string sockets that support fields currently, so removing
the diamond sockets for now helps avoid confusion.

Differential Revision: https://developer.blender.org/D12828
This commit is contained in:
Erik Abrahamsson 2021-10-18 19:08:02 -05:00 committed by Hans Goudey
parent d7b231baa8
commit c1d138dd92
Notes: blender-bot 2023-02-14 11:35:46 +01:00
Referenced by issue #91979, Make String Length Output not a field
3 changed files with 0 additions and 3 deletions

View File

@ -24,7 +24,6 @@ namespace blender::nodes {
static void fn_node_string_length_declare(NodeDeclarationBuilder &b)
{
b.is_function_node();
b.add_input<decl::String>("String");
b.add_output<decl::Int>("Length");
};

View File

@ -22,7 +22,6 @@ namespace blender::nodes {
static void fn_node_string_substring_declare(NodeDeclarationBuilder &b)
{
b.is_function_node();
b.add_input<decl::String>("String");
b.add_input<decl::Int>("Position");
b.add_input<decl::Int>("Length").min(0);

View File

@ -21,7 +21,6 @@ namespace blender::nodes {
static void fn_node_value_to_string_declare(NodeDeclarationBuilder &b)
{
b.is_function_node();
b.add_input<decl::Float>("Value");
b.add_input<decl::Int>("Decimals").min(0);
b.add_output<decl::String>("String");