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:
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_set_curve_handles.cc')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_set_curve_handles.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_set_curve_handles.cc b/source/blender/nodes/geometry/nodes/node_geo_set_curve_handles.cc
index 30b445da58c..363a2c424fd 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_set_curve_handles.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_set_curve_handles.cc
@@ -21,7 +21,7 @@
#include "node_geometry_util.hh"
-namespace blender::nodes {
+namespace blender::nodes::node_geo_set_curve_handles_cc {
static void geo_node_set_curve_handles_declare(NodeDeclarationBuilder &b)
{
@@ -162,22 +162,24 @@ static void geo_node_set_curve_handles_exec(GeoNodeExecParams params)
params.set_output("Curve", std::move(geometry_set));
}
-} // namespace blender::nodes
+} // namespace blender::nodes::node_geo_set_curve_handles_cc
void register_node_type_geo_set_curve_handles()
{
+ namespace file_ns = blender::nodes::node_geo_set_curve_handles_cc;
+
static bNodeType ntype;
geo_node_type_base(
&ntype, GEO_NODE_SET_CURVE_HANDLES, "Set Handle Positions", NODE_CLASS_GEOMETRY, 0);
- ntype.geometry_node_execute = blender::nodes::geo_node_set_curve_handles_exec;
- ntype.declare = blender::nodes::geo_node_set_curve_handles_declare;
+ ntype.geometry_node_execute = file_ns::geo_node_set_curve_handles_exec;
+ ntype.declare = file_ns::geo_node_set_curve_handles_declare;
ntype.minwidth = 100.0f;
- node_type_init(&ntype, blender::nodes::geo_node_set_curve_handles_init);
+ node_type_init(&ntype, file_ns::geo_node_set_curve_handles_init);
node_type_storage(&ntype,
"NodeGeometrySetCurveHandlePositions",
node_free_standard_storage,
node_copy_standard_storage);
- ntype.draw_buttons = blender::nodes::geo_node_set_curve_handles_layout;
+ ntype.draw_buttons = file_ns::geo_node_set_curve_handles_layout;
nodeRegisterType(&ntype);
}