diff options
author | Aaron Carlisle <carlisle.b3d@gmail.com> | 2021-12-28 21:37:59 +0300 |
---|---|---|
committer | Aaron Carlisle <carlisle.b3d@gmail.com> | 2021-12-28 22:18:31 +0300 |
commit | 715e0faabcbfc4a170394dd978986d9881c4e611 (patch) | |
tree | b37aa08458320c02ec86e20e4d6f7feb8e6109f4 /source/blender/nodes/function/nodes/node_fn_rotate_euler.cc | |
parent | 955748ab1e35d92d9c60ce81f43681e715768eb2 (diff) |
Nodes: Declare function nodes in individual file namespace
To be used in the future to support unity builds
Diffstat (limited to 'source/blender/nodes/function/nodes/node_fn_rotate_euler.cc')
-rw-r--r-- | source/blender/nodes/function/nodes/node_fn_rotate_euler.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/source/blender/nodes/function/nodes/node_fn_rotate_euler.cc b/source/blender/nodes/function/nodes/node_fn_rotate_euler.cc index 7dbc11fb161..a9f464d9b73 100644 --- a/source/blender/nodes/function/nodes/node_fn_rotate_euler.cc +++ b/source/blender/nodes/function/nodes/node_fn_rotate_euler.cc @@ -24,7 +24,7 @@ #include "node_function_util.hh" -namespace blender::nodes { +namespace blender::nodes::node_fn_rotate_euler_cc { static void fn_node_rotate_euler_declare(NodeDeclarationBuilder &b) { @@ -125,15 +125,18 @@ static void fn_node_rotate_euler_build_multi_function(NodeMultiFunctionBuilder & builder.set_matching_fn(fn); } -} // namespace blender::nodes +} // namespace blender::nodes::node_fn_rotate_euler_cc void register_node_type_fn_rotate_euler() { + namespace file_ns = blender::nodes::node_fn_rotate_euler_cc; + static bNodeType ntype; + fn_node_type_base(&ntype, FN_NODE_ROTATE_EULER, "Rotate Euler", NODE_CLASS_CONVERTER, 0); - ntype.declare = blender::nodes::fn_node_rotate_euler_declare; - ntype.draw_buttons = blender::nodes::fn_node_rotate_euler_layout; - node_type_update(&ntype, blender::nodes::fn_node_rotate_euler_update); - ntype.build_multi_function = blender::nodes::fn_node_rotate_euler_build_multi_function; + ntype.declare = file_ns::fn_node_rotate_euler_declare; + ntype.draw_buttons = file_ns::fn_node_rotate_euler_layout; + node_type_update(&ntype, file_ns::fn_node_rotate_euler_update); + ntype.build_multi_function = file_ns::fn_node_rotate_euler_build_multi_function; nodeRegisterType(&ntype); } |