Commit: 99cbaced3bfcc98a0ecf4e20ebb3b12bba24a342
Author: Hans Goudey
Date:   Mon Oct 3 16:44:09 2022 -0500
Branches: master
https://developer.blender.org/rB99cbaced3bfcc98a0ecf4e20ebb3b12bba24a342

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.

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

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

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

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<decl::Int>(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<decl::Int>(N_("Offset"))
-      .dependent_field()
+      .supports_field()
       .description(N_("The number of control points along the curve to 
traverse"));
   b.add_output<decl::Bool>(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<decl::Int>(N_("Point Index"))
-      .field_source()
+      .dependent_field()
       .description(N_("The index of the control point plus the offset within 
the entire "
                       "curves data-block"));
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to