Fix: Incorrect field visualization for some shader nodes

These need to be tagged as function nodes in their declaration.
This commit is contained in:
Hans Goudey 2021-09-23 22:23:14 -05:00
parent bc65c7d0e5
commit 0e039749e3
2 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,7 @@ namespace blender::nodes {
static void sh_node_combrgb_declare(NodeDeclarationBuilder &b)
{
b.is_function_node();
b.add_input<decl::Float>("R").min(0.0f).max(1.0f);
b.add_input<decl::Float>("G").min(0.0f).max(1.0f);
b.add_input<decl::Float>("B").min(0.0f).max(1.0f);

View File

@ -104,6 +104,7 @@ namespace blender::nodes {
static void sh_node_combxyz_declare(NodeDeclarationBuilder &b)
{
b.is_function_node();
b.add_input<decl::Float>("X").min(-10000.0f).max(10000.0f);
b.add_input<decl::Float>("Y").min(-10000.0f).max(10000.0f);
b.add_input<decl::Float>("Z").min(-10000.0f).max(10000.0f);