Differential D16858 Diff 58937 source/blender/nodes/geometry/nodes/node_geo_offset_point_in_curve.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_offset_point_in_curve.cc
| Show All 28 Lines | static void node_declare(NodeDeclarationBuilder &b) | ||||
| b.add_input<decl::Int>(N_("Point Index")) | b.add_input<decl::Int>(N_("Point Index")) | ||||
| .implicit_field(implicit_field_inputs::index) | .implicit_field(implicit_field_inputs::index) | ||||
| .description( | .description( | ||||
| N_("The index of the control point to evaluate. Defaults to the current index")); | N_("The index of the control point to evaluate. Defaults to the current index")); | ||||
| b.add_input<decl::Int>(N_("Offset")) | b.add_input<decl::Int>(N_("Offset")) | ||||
| .supports_field() | .supports_field() | ||||
| .description(N_("The number of control points along the curve to traverse")); | .description(N_("The number of control points along the curve to traverse")); | ||||
| b.add_output<decl::Bool>(N_("Is Valid Offset")) | b.add_output<decl::Bool>(N_("Is Valid Offset")) | ||||
| .dependent_field() | .field_source_reference_all() | ||||
| .description(N_("Whether the input control point plus the offset is a valid index of the " | .description(N_("Whether the input control point plus the offset is a valid index of the " | ||||
| "original curve")); | "original curve")); | ||||
| b.add_output<decl::Int>(N_("Point Index")) | b.add_output<decl::Int>(N_("Point Index")) | ||||
| .dependent_field() | .field_source_reference_all() | ||||
| .description(N_("The index of the control point plus the offset within the entire " | .description(N_("The index of the control point plus the offset within the entire " | ||||
| "curves data-block")); | "curves data-block")); | ||||
| } | } | ||||
| class ControlPointNeighborFieldInput final : public bke::CurvesFieldInput { | class ControlPointNeighborFieldInput final : public bke::CurvesFieldInput { | ||||
| private: | private: | ||||
| const Field<int> index_; | const Field<int> index_; | ||||
| const Field<int> offset_; | const Field<int> offset_; | ||||
| ▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines | |||||