From 99cbaced3bfcc98a0ecf4e20ebb3b12bba24a342 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 3 Oct 2022 16:44:09 -0500 Subject: Fix: Incorrect field status in offset point in curve node The input supports fields, the outputs are fields only if either of the inputs are fields. Also, .hide_value() is redundant for implicit fields. --- .../blender/nodes/geometry/nodes/node_geo_offset_point_in_curve.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source') diff --git a/source/blender/nodes/geometry/nodes/node_geo_offset_point_in_curve.cc b/source/blender/nodes/geometry/nodes/node_geo_offset_point_in_curve.cc index 6891593d6f7..d71e27e0385 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_offset_point_in_curve.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_offset_point_in_curve.cc @@ -28,18 +28,17 @@ static void node_declare(NodeDeclarationBuilder &b) { b.add_input(N_("Point Index")) .implicit_field(implicit_field_inputs::index) - .hide_value() .description( N_("The index of the control point to evaluate. Defaults to the current index")); b.add_input(N_("Offset")) - .dependent_field() + .supports_field() .description(N_("The number of control points along the curve to traverse")); b.add_output(N_("Is Valid Offset")) - .field_source() + .dependent_field() .description(N_("Outputs true if the evaluated control point plus the offset " "is a valid index of the original curve")); b.add_output(N_("Point Index")) - .field_source() + .dependent_field() .description(N_("The index of the control point plus the offset within the entire " "curves data-block")); } -- cgit v1.2.3