Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-11-23 18:55:51 +0300
committerHans Goudey <h.goudey@me.com>2021-11-23 18:55:51 +0300
commitfab39440e94d94b0a6ea8ef7771312adbab98e66 (patch)
tree60cfd6396917cdff6ed5cabf312b91ae76a8f707 /source/blender/nodes/geometry/nodes/node_geo_input_tangent.cc
parenta9eb4e6f5905df989eb763749e8adee9e55b897b (diff)
Cleanup: Simplify geometry node function names
With this commit, we no longer use the prefixes for every node type function like `geo_node_translate_instances_`. They just added more places to change when adding a new node, for no real benefit. Differential Revision: https://developer.blender.org/D13337
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_input_tangent.cc')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_input_tangent.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_input_tangent.cc b/source/blender/nodes/geometry/nodes/node_geo_input_tangent.cc
index 231f808a1e1..0502f64ecb7 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_input_tangent.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_input_tangent.cc
@@ -22,7 +22,7 @@
namespace blender::nodes::node_geo_input_tangent_cc {
-static void geo_node_input_tangent_declare(NodeDeclarationBuilder &b)
+static void node_declare(NodeDeclarationBuilder &b)
{
b.add_output<decl::Vector>(N_("Tangent")).field_source();
}
@@ -155,7 +155,7 @@ class TangentFieldInput final : public fn::FieldInput {
}
};
-static void geo_node_input_tangent_exec(GeoNodeExecParams params)
+static void node_geo_exec(GeoNodeExecParams params)
{
Field<float3> tangent_field{std::make_shared<TangentFieldInput>()};
params.set_output("Tangent", std::move(tangent_field));
@@ -170,7 +170,7 @@ void register_node_type_geo_input_tangent()
static bNodeType ntype;
geo_node_type_base(&ntype, GEO_NODE_INPUT_TANGENT, "Curve Tangent", NODE_CLASS_INPUT, 0);
- ntype.geometry_node_execute = file_ns::geo_node_input_tangent_exec;
- ntype.declare = file_ns::geo_node_input_tangent_declare;
+ ntype.geometry_node_execute = file_ns::node_geo_exec;
+ ntype.declare = file_ns::node_declare;
nodeRegisterType(&ntype);
}