Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_input_index.cc
| Show All 14 Lines | |||||
| */ | */ | ||||
| #include "node_geometry_util.hh" | #include "node_geometry_util.hh" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void geo_node_input_index_declare(NodeDeclarationBuilder &b) | static void geo_node_input_index_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_output<decl::Int>("Index").field_source(); | b.add_output<decl::Int>(N_("Index")).field_source(); | ||||
| } | } | ||||
| static void geo_node_input_index_exec(GeoNodeExecParams params) | static void geo_node_input_index_exec(GeoNodeExecParams params) | ||||
| { | { | ||||
| Field<int> index_field{std::make_shared<fn::IndexFieldInput>()}; | Field<int> index_field{std::make_shared<fn::IndexFieldInput>()}; | ||||
| params.set_output("Index", std::move(index_field)); | params.set_output("Index", std::move(index_field)); | ||||
| } | } | ||||
| Show All 11 Lines | |||||