Differential D16858 Diff 59005 source/blender/nodes/geometry/nodes/node_geo_mesh_topology_vertex_of_corner.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_mesh_topology_vertex_of_corner.cc
| Show All 9 Lines | |||||
| static void node_declare(NodeDeclarationBuilder &b) | static void node_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_input<decl::Int>(N_("Corner Index")) | b.add_input<decl::Int>(N_("Corner Index")) | ||||
| .implicit_field(implicit_field_inputs::index) | .implicit_field(implicit_field_inputs::index) | ||||
| .description( | .description( | ||||
| N_("The corner to retrieve data from. Defaults to the corner from the context")); | N_("The corner to retrieve data from. Defaults to the corner from the context")); | ||||
| b.add_output<decl::Int>(N_("Vertex Index")) | b.add_output<decl::Int>(N_("Vertex Index")) | ||||
| .dependent_field() | .field_source_reference_all() | ||||
| .description(N_("The vertex the corner is attached to")); | .description(N_("The vertex the corner is attached to")); | ||||
| } | } | ||||
| static int get_loop_vert(const MLoop &loop) | static int get_loop_vert(const MLoop &loop) | ||||
| { | { | ||||
| return loop.v; | return loop.v; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines | |||||