Differential D16083 Diff 56395 source/blender/nodes/geometry/nodes/node_geo_edge_paths_to_selection.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_edge_paths_to_selection.cc
| Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | public: | ||||
| { | { | ||||
| if (const PathToEdgeSelectionFieldInput *other_field = | if (const PathToEdgeSelectionFieldInput *other_field = | ||||
| dynamic_cast<const PathToEdgeSelectionFieldInput *>(&other)) { | dynamic_cast<const PathToEdgeSelectionFieldInput *>(&other)) { | ||||
| return other_field->start_vertices_ == start_vertices_ && | return other_field->start_vertices_ == start_vertices_ && | ||||
| other_field->next_vertex_ == next_vertex_; | other_field->next_vertex_ == next_vertex_; | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| std::optional<eAttrDomain> preferred_domain(const Mesh & /*mesh*/) const override | |||||
| { | |||||
| return ATTR_DOMAIN_EDGE; | |||||
| } | |||||
| }; | }; | ||||
| static void node_geo_exec(GeoNodeExecParams params) | static void node_geo_exec(GeoNodeExecParams params) | ||||
| { | { | ||||
| Field<bool> start_verts = params.extract_input<Field<bool>>("Start Vertices"); | Field<bool> start_verts = params.extract_input<Field<bool>>("Start Vertices"); | ||||
| Field<int> next_vertex = params.extract_input<Field<int>>("Next Vertex Index"); | Field<int> next_vertex = params.extract_input<Field<int>>("Next Vertex Index"); | ||||
| Field<bool> selection_field{ | Field<bool> selection_field{ | ||||
| std::make_shared<PathToEdgeSelectionFieldInput>(start_verts, next_vertex)}; | std::make_shared<PathToEdgeSelectionFieldInput>(start_verts, next_vertex)}; | ||||
| Show All 18 Lines | |||||