diff options
author | Hans Goudey <h.goudey@me.com> | 2022-10-04 00:41:58 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-10-04 00:41:58 +0300 |
commit | c3b6e372542f9fb0ff238c8071cca4ae562445c3 (patch) | |
tree | 90a1979160c94c4fb52e6a226b0bca9c6853d1e1 /source/blender/nodes/geometry | |
parent | 248def7e480666682c80a2e778a5f0cf39a3a2a1 (diff) |
Geometry Nodes: Rename Control Point Neighbors Node
Rename the node to "Offset Point in Curve"
Since this was committed, more mesh and curve topology nodes have been
committed with a different naming scheme (482d431bb6735e82069). Change
the name of this node to match "Offset Corner in Face". Because the
node was only added recently, it's a full rename, including the ID,
so forward compatibility is broken.
Diffstat (limited to 'source/blender/nodes/geometry')
-rw-r--r-- | source/blender/nodes/geometry/CMakeLists.txt | 2 | ||||
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_offset_point_in_curve.cc (renamed from source/blender/nodes/geometry/nodes/node_geo_input_control_point_neighbors.cc) | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/nodes/geometry/CMakeLists.txt b/source/blender/nodes/geometry/CMakeLists.txt index d8391871571..2b8de906a77 100644 --- a/source/blender/nodes/geometry/CMakeLists.txt +++ b/source/blender/nodes/geometry/CMakeLists.txt @@ -73,7 +73,6 @@ set(SRC nodes/node_geo_flip_faces.cc nodes/node_geo_geometry_to_instance.cc nodes/node_geo_image_texture.cc - nodes/node_geo_input_control_point_neighbors.cc nodes/node_geo_input_curve_handles.cc nodes/node_geo_input_curve_tilt.cc nodes/node_geo_input_id.cc @@ -130,6 +129,7 @@ set(SRC nodes/node_geo_mesh_topology_offset_corner_in_face.cc nodes/node_geo_mesh_topology_vertex_of_corner.cc nodes/node_geo_object_info.cc + nodes/node_geo_offset_point_in_curve.cc nodes/node_geo_points.cc nodes/node_geo_points_to_vertices.cc nodes/node_geo_points_to_volume.cc diff --git a/source/blender/nodes/geometry/nodes/node_geo_input_control_point_neighbors.cc b/source/blender/nodes/geometry/nodes/node_geo_offset_point_in_curve.cc index 7af4b13cd57..6891593d6f7 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_input_control_point_neighbors.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_offset_point_in_curve.cc @@ -22,7 +22,7 @@ int apply_offset_in_cyclic_range(const IndexRange range, const int start_index, } // namespace blender::nodes -namespace blender::nodes::node_geo_input_control_point_neighbors_cc { +namespace blender::nodes::node_geo_offset_point_in_curve_cc { static void node_declare(NodeDeclarationBuilder &b) { @@ -51,7 +51,7 @@ class ControlPointNeighborFieldInput final : public bke::CurvesFieldInput { public: ControlPointNeighborFieldInput(Field<int> index, Field<int> offset) - : CurvesFieldInput(CPPType::get<int>(), "Control Point Neighbors"), + : CurvesFieldInput(CPPType::get<int>(), "Offset Point in Curve"), index_(std::move(index)), offset_(std::move(offset)) { @@ -156,14 +156,14 @@ static void node_geo_exec(GeoNodeExecParams params) } } -} // namespace blender::nodes::node_geo_input_control_point_neighbors_cc +} // namespace blender::nodes::node_geo_offset_point_in_curve_cc -void register_node_type_geo_input_control_point_neighbors() +void register_node_type_geo_offset_point_in_curve() { - namespace file_ns = blender::nodes::node_geo_input_control_point_neighbors_cc; + namespace file_ns = blender::nodes::node_geo_offset_point_in_curve_cc; static bNodeType ntype; geo_node_type_base( - &ntype, GEO_NODE_INPUT_CONTROL_POINT_NEIGHBORS, "Control Point Neighbors", NODE_CLASS_INPUT); + &ntype, GEO_NODE_OFFSET_POINT_IN_CURVE, "Offset Point in Curve", NODE_CLASS_INPUT); ntype.geometry_node_execute = file_ns::node_geo_exec; ntype.declare = file_ns::node_declare; nodeRegisterType(&ntype); |