[Bf-blender-cvs] [5a96096c5ec] temp-geometry-nodes-fields: Fix function and define names
Hans Goudey
noreply at git.blender.org
Fri Sep 3 06:00:09 CEST 2021
Commit: 5a96096c5ec2276d6e9661a2751e099178d37a05
Author: Hans Goudey
Date: Thu Sep 2 22:55:09 2021 -0500
Branches: temp-geometry-nodes-fields
https://developer.blender.org/rB5a96096c5ec2276d6e9661a2751e099178d37a05
Fix function and define names
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_index.cc
M source/blender/nodes/geometry/nodes/node_geo_position.cc
===================================================================
diff --git a/source/blender/nodes/geometry/nodes/node_geo_index.cc b/source/blender/nodes/geometry/nodes/node_geo_index.cc
index d010b20842b..46de1a50bfe 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_index.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_index.cc
@@ -18,7 +18,7 @@
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");
}
@@ -41,7 +41,7 @@ class IndexContextFieldSource final : public fn::ContextFieldSource {
}
};
-static void GEO_NODE_INPUT_INDEX_exec(GeoNodeExecParams params)
+static void geo_node_input_index_exec(GeoNodeExecParams params)
{
Field<int> index_field{std::make_shared<IndexContextFieldSource>()};
params.set_output("Index", std::move(index_field));
@@ -54,7 +54,7 @@ void register_node_type_geo_input_index()
static bNodeType ntype;
geo_node_type_base(&ntype, GEO_NODE_INPUT_INDEX, "Index", NODE_CLASS_INPUT, 0);
- ntype.geometry_node_execute = blender::nodes::GEO_NODE_INPUT_INDEX_exec;
- ntype.declare = blender::nodes::GEO_NODE_INPUT_INDEX_declare;
+ ntype.geometry_node_execute = blender::nodes::geo_node_input_index_exec;
+ ntype.declare = blender::nodes::geo_node_input_index_declare;
nodeRegisterType(&ntype);
}
diff --git a/source/blender/nodes/geometry/nodes/node_geo_position.cc b/source/blender/nodes/geometry/nodes/node_geo_position.cc
index 38d49eb50c5..fba423e65c4 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_position.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_position.cc
@@ -32,7 +32,7 @@ static void geo_node_input_position_exec(GeoNodeExecParams params)
} // namespace blender::nodes
-void register_node_type_geo_input_input_position()
+void register_node_type_geo_input_position()
{
static bNodeType ntype;
More information about the Bf-blender-cvs
mailing list