diff options
author | Hans Goudey <h.goudey@me.com> | 2022-10-04 00:44:09 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-10-04 00:44:09 +0300 |
commit | 99cbaced3bfcc98a0ecf4e20ebb3b12bba24a342 (patch) | |
tree | 5ec9528ad6ec4504f670d343457da1815bf78811 /source | |
parent | c3b6e372542f9fb0ff238c8071cca4ae562445c3 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_offset_point_in_curve.cc | 7 |
1 files changed, 3 insertions, 4 deletions
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")); } |