[Bf-blender-cvs] [5aba7f97743] master: Geometry Nodes: Hide value button for field at index node

Hans Goudey noreply at git.blender.org
Tue Jul 26 14:44:53 CEST 2022


Commit: 5aba7f9774345bd00878ca358ec5257910c10323
Author: Hans Goudey
Date:   Tue Jul 26 07:41:53 2022 -0500
Branches: master
https://developer.blender.org/rB5aba7f9774345bd00878ca358ec5257910c10323

Geometry Nodes: Hide value button for field at index node

Changing the value doesn't accomplish anything, since the retrieved
value would be the same for every index then. So it's best to hide it
to make the node clearer.

===================================================================

M	source/blender/nodes/geometry/nodes/node_geo_field_at_index.cc

===================================================================

diff --git a/source/blender/nodes/geometry/nodes/node_geo_field_at_index.cc b/source/blender/nodes/geometry/nodes/node_geo_field_at_index.cc
index 64861e529bc..7d44ac34f15 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_field_at_index.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_field_at_index.cc
@@ -15,11 +15,11 @@ static void node_declare(NodeDeclarationBuilder &b)
 {
   b.add_input<decl::Int>(N_("Index")).min(0).supports_field();
 
-  b.add_input<decl::Float>(N_("Value"), "Value_Float").supports_field();
-  b.add_input<decl::Int>(N_("Value"), "Value_Int").supports_field();
-  b.add_input<decl::Vector>(N_("Value"), "Value_Vector").supports_field();
-  b.add_input<decl::Color>(N_("Value"), "Value_Color").supports_field();
-  b.add_input<decl::Bool>(N_("Value"), "Value_Bool").supports_field();
+  b.add_input<decl::Float>(N_("Value"), "Value_Float").hide_value().supports_field();
+  b.add_input<decl::Int>(N_("Value"), "Value_Int").hide_value().supports_field();
+  b.add_input<decl::Vector>(N_("Value"), "Value_Vector").hide_value().supports_field();
+  b.add_input<decl::Color>(N_("Value"), "Value_Color").hide_value().supports_field();
+  b.add_input<decl::Bool>(N_("Value"), "Value_Bool").hide_value().supports_field();
 
   b.add_output<decl::Float>(N_("Value"), "Value_Float").field_source();
   b.add_output<decl::Int>(N_("Value"), "Value_Int").field_source();



More information about the Bf-blender-cvs mailing list