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"); | b.add_output<decl::Int>("Index").is_field(); | ||||
| } | } | ||||
| class IndexFieldInput final : public fn::FieldInput { | class IndexFieldInput final : public fn::FieldInput { | ||||
| public: | public: | ||||
| IndexFieldInput() : FieldInput(CPPType::get<int>(), "Index") | IndexFieldInput() : FieldInput(CPPType::get<int>(), "Index") | ||||
| { | { | ||||
| } | } | ||||
| Show All 29 Lines | |||||