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:
authorAaron Carlisle <carlisle.b3d@gmail.com>2021-12-28 21:37:59 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2021-12-28 22:18:31 +0300
commit715e0faabcbfc4a170394dd978986d9881c4e611 (patch)
treeb37aa08458320c02ec86e20e4d6f7feb8e6109f4 /source/blender/nodes/function
parent955748ab1e35d92d9c60ce81f43681e715768eb2 (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')
-rw-r--r--source/blender/nodes/function/nodes/legacy/node_fn_random_float.cc12
-rw-r--r--source/blender/nodes/function/nodes/node_fn_align_euler_to_vector.cc12
-rw-r--r--source/blender/nodes/function/nodes/node_fn_boolean_math.cc16
-rw-r--r--source/blender/nodes/function/nodes/node_fn_float_to_int.cc14
-rw-r--r--source/blender/nodes/function/nodes/node_fn_input_bool.cc14
-rw-r--r--source/blender/nodes/function/nodes/node_fn_input_color.cc14
-rw-r--r--source/blender/nodes/function/nodes/node_fn_input_int.cc14
-rw-r--r--source/blender/nodes/function/nodes/node_fn_input_special_characters.cc11
-rw-r--r--source/blender/nodes/function/nodes/node_fn_input_string.cc20
-rw-r--r--source/blender/nodes/function/nodes/node_fn_input_vector.cc14
-rw-r--r--source/blender/nodes/function/nodes/node_fn_random_value.cc19
-rw-r--r--source/blender/nodes/function/nodes/node_fn_replace_string.cc10
-rw-r--r--source/blender/nodes/function/nodes/node_fn_rotate_euler.cc15
-rw-r--r--source/blender/nodes/function/nodes/node_fn_slice_string.cc10
-rw-r--r--source/blender/nodes/function/nodes/node_fn_string_length.cc10
-rw-r--r--source/blender/nodes/function/nodes/node_fn_value_to_string.cc10
16 files changed, 123 insertions, 92 deletions
diff --git a/source/blender/nodes/function/nodes/legacy/node_fn_random_float.cc b/source/blender/nodes/function/nodes/legacy/node_fn_random_float.cc
index d98d49c7273..1ad34309bf2 100644
--- a/source/blender/nodes/function/nodes/legacy/node_fn_random_float.cc
+++ b/source/blender/nodes/function/nodes/legacy/node_fn_random_float.cc
@@ -18,7 +18,7 @@
#include "BLI_hash.h"
-namespace blender::nodes {
+namespace blender::nodes::node_fn_random_float_cc {
static void fn_node_legacy_random_float_declare(NodeDeclarationBuilder &b)
{
@@ -29,8 +29,6 @@ static void fn_node_legacy_random_float_declare(NodeDeclarationBuilder &b)
b.add_output<decl::Float>(N_("Value"));
};
-} // namespace blender::nodes
-
class RandomFloatFunction : public blender::fn::MultiFunction {
public:
RandomFloatFunction()
@@ -75,12 +73,16 @@ static void fn_node_legacy_random_float_build_multi_function(
builder.set_matching_fn(fn);
}
+} // namespace blender::nodes::node_fn_random_float_cc
+
void register_node_type_fn_legacy_random_float()
{
+ namespace file_ns = blender::nodes::node_fn_random_float_cc;
+
static bNodeType ntype;
fn_node_type_base(&ntype, FN_NODE_LEGACY_RANDOM_FLOAT, "Random Float", 0, 0);
- ntype.declare = blender::nodes::fn_node_legacy_random_float_declare;
- ntype.build_multi_function = fn_node_legacy_random_float_build_multi_function;
+ ntype.declare = file_ns::fn_node_legacy_random_float_declare;
+ ntype.build_multi_function = file_ns::fn_node_legacy_random_float_build_multi_function;
nodeRegisterType(&ntype);
}
diff --git a/source/blender/nodes/function/nodes/node_fn_align_euler_to_vector.cc b/source/blender/nodes/function/nodes/node_fn_align_euler_to_vector.cc
index 4088fa24ca7..a8436b96009 100644
--- a/source/blender/nodes/function/nodes/node_fn_align_euler_to_vector.cc
+++ b/source/blender/nodes/function/nodes/node_fn_align_euler_to_vector.cc
@@ -23,7 +23,7 @@
#include "node_function_util.hh"
-namespace blender::nodes {
+namespace blender::nodes::node_fn_align_euler_to_vector_cc {
static void fn_node_align_euler_to_vector_declare(NodeDeclarationBuilder &b)
{
@@ -207,16 +207,18 @@ static void fn_node_align_euler_to_vector_build_multi_function(NodeMultiFunction
builder.construct_and_set_matching_fn<MF_AlignEulerToVector>(node.custom1, node.custom2);
}
-} // namespace blender::nodes
+} // namespace blender::nodes::node_fn_align_euler_to_vector_cc
void register_node_type_fn_align_euler_to_vector()
{
+ namespace file_ns = blender::nodes::node_fn_align_euler_to_vector_cc;
+
static bNodeType ntype;
fn_node_type_base(
&ntype, FN_NODE_ALIGN_EULER_TO_VECTOR, "Align Euler to Vector", NODE_CLASS_CONVERTER, 0);
- ntype.declare = blender::nodes::fn_node_align_euler_to_vector_declare;
- ntype.draw_buttons = blender::nodes::fn_node_align_euler_to_vector_layout;
- ntype.build_multi_function = blender::nodes::fn_node_align_euler_to_vector_build_multi_function;
+ ntype.declare = file_ns::fn_node_align_euler_to_vector_declare;
+ ntype.draw_buttons = file_ns::fn_node_align_euler_to_vector_layout;
+ ntype.build_multi_function = file_ns::fn_node_align_euler_to_vector_build_multi_function;
nodeRegisterType(&ntype);
}
diff --git a/source/blender/nodes/function/nodes/node_fn_boolean_math.cc b/source/blender/nodes/function/nodes/node_fn_boolean_math.cc
index 4b59b49c632..45145958002 100644
--- a/source/blender/nodes/function/nodes/node_fn_boolean_math.cc
+++ b/source/blender/nodes/function/nodes/node_fn_boolean_math.cc
@@ -24,7 +24,7 @@
#include "node_function_util.hh"
-namespace blender::nodes {
+namespace blender::nodes::node_fn_boolean_math_cc {
static void fn_node_boolean_math_declare(NodeDeclarationBuilder &b)
{
@@ -87,17 +87,19 @@ static void fn_node_boolean_math_build_multi_function(NodeMultiFunctionBuilder &
builder.set_matching_fn(fn);
}
-} // namespace blender::nodes
+} // namespace blender::nodes::node_fn_boolean_math_cc
void register_node_type_fn_boolean_math()
{
+ namespace file_ns = blender::nodes::node_fn_boolean_math_cc;
+
static bNodeType ntype;
fn_node_type_base(&ntype, FN_NODE_BOOLEAN_MATH, "Boolean Math", NODE_CLASS_CONVERTER, 0);
- ntype.declare = blender::nodes::fn_node_boolean_math_declare;
- ntype.labelfunc = blender::nodes::node_boolean_math_label;
- node_type_update(&ntype, blender::nodes::node_boolean_math_update);
- ntype.build_multi_function = blender::nodes::fn_node_boolean_math_build_multi_function;
- ntype.draw_buttons = blender::nodes::fn_node_boolean_math_layout;
+ ntype.declare = file_ns::fn_node_boolean_math_declare;
+ ntype.labelfunc = file_ns::node_boolean_math_label;
+ node_type_update(&ntype, file_ns::node_boolean_math_update);
+ ntype.build_multi_function = file_ns::fn_node_boolean_math_build_multi_function;
+ ntype.draw_buttons = file_ns::fn_node_boolean_math_layout;
nodeRegisterType(&ntype);
}
diff --git a/source/blender/nodes/function/nodes/node_fn_float_to_int.cc b/source/blender/nodes/function/nodes/node_fn_float_to_int.cc
index 21f6734e4aa..33b9f94ddcd 100644
--- a/source/blender/nodes/function/nodes/node_fn_float_to_int.cc
+++ b/source/blender/nodes/function/nodes/node_fn_float_to_int.cc
@@ -25,7 +25,7 @@
#include "node_function_util.hh"
-namespace blender::nodes {
+namespace blender::nodes::node_fn_float_to_int_cc {
static void fn_node_float_to_int_declare(NodeDeclarationBuilder &b)
{
@@ -81,16 +81,18 @@ static void fn_node_float_to_int_build_multi_function(NodeMultiFunctionBuilder &
builder.set_matching_fn(fn);
}
-} // namespace blender::nodes
+} // namespace blender::nodes::node_fn_float_to_int_cc
void register_node_type_fn_float_to_int()
{
+ namespace file_ns = blender::nodes::node_fn_float_to_int_cc;
+
static bNodeType ntype;
fn_node_type_base(&ntype, FN_NODE_FLOAT_TO_INT, "Float to Integer", NODE_CLASS_CONVERTER, 0);
- ntype.declare = blender::nodes::fn_node_float_to_int_declare;
- ntype.labelfunc = blender::nodes::node_float_to_int_label;
- ntype.build_multi_function = blender::nodes::fn_node_float_to_int_build_multi_function;
- ntype.draw_buttons = blender::nodes::fn_node_float_to_int_layout;
+ ntype.declare = file_ns::fn_node_float_to_int_declare;
+ ntype.labelfunc = file_ns::node_float_to_int_label;
+ ntype.build_multi_function = file_ns::fn_node_float_to_int_build_multi_function;
+ ntype.draw_buttons = file_ns::fn_node_float_to_int_layout;
nodeRegisterType(&ntype);
}
diff --git a/source/blender/nodes/function/nodes/node_fn_input_bool.cc b/source/blender/nodes/function/nodes/node_fn_input_bool.cc
index 5623a6df357..edb18903b65 100644
--- a/source/blender/nodes/function/nodes/node_fn_input_bool.cc
+++ b/source/blender/nodes/function/nodes/node_fn_input_bool.cc
@@ -21,7 +21,7 @@
#include "UI_interface.h"
#include "UI_resources.h"
-namespace blender::nodes {
+namespace blender::nodes::node_fn_input_bool_cc {
static void fn_node_input_bool_declare(NodeDeclarationBuilder &b)
{
@@ -47,18 +47,20 @@ static void fn_node_input_bool_init(bNodeTree *UNUSED(ntree), bNode *node)
node->storage = data;
}
-} // namespace blender::nodes
+} // namespace blender::nodes::node_fn_input_bool_cc
void register_node_type_fn_input_bool()
{
+ namespace file_ns = blender::nodes::node_fn_input_bool_cc;
+
static bNodeType ntype;
fn_node_type_base(&ntype, FN_NODE_INPUT_BOOL, "Boolean", 0, 0);
- ntype.declare = blender::nodes::fn_node_input_bool_declare;
- node_type_init(&ntype, blender::nodes::fn_node_input_bool_init);
+ ntype.declare = file_ns::fn_node_input_bool_declare;
+ node_type_init(&ntype, file_ns::fn_node_input_bool_init);
node_type_storage(
&ntype, "NodeInputBool", node_free_standard_storage, node_copy_standard_storage);
- ntype.build_multi_function = blender::nodes::fn_node_input_bool_build_multi_function;
- ntype.draw_buttons = blender::nodes::fn_node_input_bool_layout;
+ ntype.build_multi_function = file_ns::fn_node_input_bool_build_multi_function;
+ ntype.draw_buttons = file_ns::fn_node_input_bool_layout;
nodeRegisterType(&ntype);
}
diff --git a/source/blender/nodes/function/nodes/node_fn_input_color.cc b/source/blender/nodes/function/nodes/node_fn_input_color.cc
index cb8d95fc63a..125df09b544 100644
--- a/source/blender/nodes/function/nodes/node_fn_input_color.cc
+++ b/source/blender/nodes/function/nodes/node_fn_input_color.cc
@@ -19,7 +19,7 @@
#include "UI_interface.h"
#include "UI_resources.h"
-namespace blender::nodes {
+namespace blender::nodes::node_fn_input_color_cc {
static void fn_node_input_color_declare(NodeDeclarationBuilder &b)
{
@@ -48,18 +48,20 @@ static void fn_node_input_color_init(bNodeTree *UNUSED(ntree), bNode *node)
node->storage = data;
}
-} // namespace blender::nodes
+} // namespace blender::nodes::node_fn_input_color_cc
void register_node_type_fn_input_color()
{
+ namespace file_ns = blender::nodes::node_fn_input_color_cc;
+
static bNodeType ntype;
fn_node_type_base(&ntype, FN_NODE_INPUT_COLOR, "Color", NODE_CLASS_INPUT, 0);
- ntype.declare = blender::nodes::fn_node_input_color_declare;
- node_type_init(&ntype, blender::nodes::fn_node_input_color_init);
+ ntype.declare = file_ns::fn_node_input_color_declare;
+ node_type_init(&ntype, file_ns::fn_node_input_color_init);
node_type_storage(
&ntype, "NodeInputColor", node_free_standard_storage, node_copy_standard_storage);
- ntype.build_multi_function = blender::nodes::fn_node_input_color_build_multi_function;
- ntype.draw_buttons = blender::nodes::fn_node_input_color_layout;
+ ntype.build_multi_function = file_ns::fn_node_input_color_build_multi_function;
+ ntype.draw_buttons = file_ns::fn_node_input_color_layout;
nodeRegisterType(&ntype);
}
diff --git a/source/blender/nodes/function/nodes/node_fn_input_int.cc b/source/blender/nodes/function/nodes/node_fn_input_int.cc
index b82dc06395d..4fecbf24248 100644
--- a/source/blender/nodes/function/nodes/node_fn_input_int.cc
+++ b/source/blender/nodes/function/nodes/node_fn_input_int.cc
@@ -21,7 +21,7 @@
#include "UI_interface.h"
#include "UI_resources.h"
-namespace blender::nodes {
+namespace blender::nodes::node_fn_input_int_cc {
static void fn_node_input_int_declare(NodeDeclarationBuilder &b)
{
@@ -47,18 +47,20 @@ static void fn_node_input_int_init(bNodeTree *UNUSED(ntree), bNode *node)
node->storage = data;
}
-} // namespace blender::nodes
+} // namespace blender::nodes::node_fn_input_int_cc
void register_node_type_fn_input_int()
{
+ namespace file_ns = blender::nodes::node_fn_input_int_cc;
+
static bNodeType ntype;
fn_node_type_base(&ntype, FN_NODE_INPUT_INT, "Integer", 0, 0);
- ntype.declare = blender::nodes::fn_node_input_int_declare;
- node_type_init(&ntype, blender::nodes::fn_node_input_int_init);
+ ntype.declare = file_ns::fn_node_input_int_declare;
+ node_type_init(&ntype, file_ns::fn_node_input_int_init);
node_type_storage(
&ntype, "NodeInputInt", node_free_standard_storage, node_copy_standard_storage);
- ntype.build_multi_function = blender::nodes::fn_node_input_int_build_multi_function;
- ntype.draw_buttons = blender::nodes::fn_node_input_int_layout;
+ ntype.build_multi_function = file_ns::fn_node_input_int_build_multi_function;
+ ntype.draw_buttons = file_ns::fn_node_input_int_layout;
nodeRegisterType(&ntype);
}
diff --git a/source/blender/nodes/function/nodes/node_fn_input_special_characters.cc b/source/blender/nodes/function/nodes/node_fn_input_special_characters.cc
index c61af419e50..ebc071902e1 100644
--- a/source/blender/nodes/function/nodes/node_fn_input_special_characters.cc
+++ b/source/blender/nodes/function/nodes/node_fn_input_special_characters.cc
@@ -16,7 +16,7 @@
#include "node_function_util.hh"
-namespace blender::nodes {
+namespace blender::nodes::node_fn_input_special_characters_cc {
static void fn_node_input_special_characters_declare(NodeDeclarationBuilder &b)
{
@@ -59,16 +59,17 @@ static void fn_node_input_special_characters_build_multi_function(
builder.set_matching_fn(special_characters_fn);
}
-} // namespace blender::nodes
+} // namespace blender::nodes::node_fn_input_special_characters_cc
void register_node_type_fn_input_special_characters()
{
+ namespace file_ns = blender::nodes::node_fn_input_special_characters_cc;
+
static bNodeType ntype;
fn_node_type_base(
&ntype, FN_NODE_INPUT_SPECIAL_CHARACTERS, "Special Characters", NODE_CLASS_INPUT, 0);
- ntype.declare = blender::nodes::fn_node_input_special_characters_declare;
- ntype.build_multi_function =
- blender::nodes::fn_node_input_special_characters_build_multi_function;
+ ntype.declare = file_ns::fn_node_input_special_characters_declare;
+ ntype.build_multi_function = file_ns::fn_node_input_special_characters_build_multi_function;
nodeRegisterType(&ntype);
}
diff --git a/source/blender/nodes/function/nodes/node_fn_input_string.cc b/source/blender/nodes/function/nodes/node_fn_input_string.cc
index dd2d1292601..f3706575f39 100644
--- a/source/blender/nodes/function/nodes/node_fn_input_string.cc
+++ b/source/blender/nodes/function/nodes/node_fn_input_string.cc
@@ -19,7 +19,7 @@
#include "UI_interface.h"
#include "UI_resources.h"
-namespace blender::nodes {
+namespace blender::nodes::node_fn_input_string_cc {
static void fn_node_input_string_declare(NodeDeclarationBuilder &b)
{
@@ -71,20 +71,20 @@ static void fn_node_string_copy(bNodeTree *UNUSED(dest_ntree),
dest_node->storage = destination_storage;
}
-} // namespace blender::nodes
+} // namespace blender::nodes::node_fn_input_string_cc
void register_node_type_fn_input_string()
{
+ namespace file_ns = blender::nodes::node_fn_input_string_cc;
+
static bNodeType ntype;
fn_node_type_base(&ntype, FN_NODE_INPUT_STRING, "String", NODE_CLASS_INPUT, 0);
- ntype.declare = blender::nodes::fn_node_input_string_declare;
- node_type_init(&ntype, blender::nodes::fn_node_input_string_init);
- node_type_storage(&ntype,
- "NodeInputString",
- blender::nodes::fn_node_input_string_free,
- blender::nodes::fn_node_string_copy);
- ntype.build_multi_function = blender::nodes::fn_node_input_string_build_multi_function;
- ntype.draw_buttons = blender::nodes::fn_node_input_string_layout;
+ ntype.declare = file_ns::fn_node_input_string_declare;
+ node_type_init(&ntype, file_ns::fn_node_input_string_init);
+ node_type_storage(
+ &ntype, "NodeInputString", file_ns::fn_node_input_string_free, file_ns::fn_node_string_copy);
+ ntype.build_multi_function = file_ns::fn_node_input_string_build_multi_function;
+ ntype.draw_buttons = file_ns::fn_node_input_string_layout;
nodeRegisterType(&ntype);
}
diff --git a/source/blender/nodes/function/nodes/node_fn_input_vector.cc b/source/blender/nodes/function/nodes/node_fn_input_vector.cc
index 352e834ee5b..c84ebda0d69 100644
--- a/source/blender/nodes/function/nodes/node_fn_input_vector.cc
+++ b/source/blender/nodes/function/nodes/node_fn_input_vector.cc
@@ -21,7 +21,7 @@
#include "UI_interface.h"
#include "UI_resources.h"
-namespace blender::nodes {
+namespace blender::nodes::node_fn_input_vector_cc {
static void fn_node_input_vector_declare(NodeDeclarationBuilder &b)
{
@@ -48,18 +48,20 @@ static void fn_node_input_vector_init(bNodeTree *UNUSED(ntree), bNode *node)
node->storage = data;
}
-} // namespace blender::nodes
+} // namespace blender::nodes::node_fn_input_vector_cc
void register_node_type_fn_input_vector()
{
+ namespace file_ns = blender::nodes::node_fn_input_vector_cc;
+
static bNodeType ntype;
fn_node_type_base(&ntype, FN_NODE_INPUT_VECTOR, "Vector", 0, 0);
- ntype.declare = blender::nodes::fn_node_input_vector_declare;
- node_type_init(&ntype, blender::nodes::fn_node_input_vector_init);
+ ntype.declare = file_ns::fn_node_input_vector_declare;
+ node_type_init(&ntype, file_ns::fn_node_input_vector_init);
node_type_storage(
&ntype, "NodeInputVector", node_free_standard_storage, node_copy_standard_storage);
- ntype.build_multi_function = blender::nodes::fn_node_input_vector_build_multi_function;
- ntype.draw_buttons = blender::nodes::fn_node_input_vector_layout;
+ ntype.build_multi_function = file_ns::fn_node_input_vector_build_multi_function;
+ ntype.draw_buttons = file_ns::fn_node_input_vector_layout;
nodeRegisterType(&ntype);
}
diff --git a/source/blender/nodes/function/nodes/node_fn_random_value.cc b/source/blender/nodes/function/nodes/node_fn_random_value.cc
index 24814047dda..12b56e9e4cd 100644
--- a/source/blender/nodes/function/nodes/node_fn_random_value.cc
+++ b/source/blender/nodes/function/nodes/node_fn_random_value.cc
@@ -24,7 +24,7 @@
#include "UI_interface.h"
#include "UI_resources.h"
-namespace blender::nodes {
+namespace blender::nodes::node_fn_random_value_cc {
NODE_STORAGE_FUNCS(NodeRandomValue)
@@ -338,18 +338,21 @@ static void fn_node_random_value_build_multi_function(NodeMultiFunctionBuilder &
}
}
-} // namespace blender::nodes
+} // namespace blender::nodes::node_fn_random_value_cc
void register_node_type_fn_random_value()
{
+ namespace file_ns = blender::nodes::node_fn_random_value_cc;
+
static bNodeType ntype;
+
fn_node_type_base(&ntype, FN_NODE_RANDOM_VALUE, "Random Value", NODE_CLASS_CONVERTER, 0);
- node_type_init(&ntype, blender::nodes::fn_node_random_value_init);
- node_type_update(&ntype, blender::nodes::fn_node_random_value_update);
- ntype.draw_buttons = blender::nodes::fn_node_random_value_layout;
- ntype.declare = blender::nodes::fn_node_random_value_declare;
- ntype.build_multi_function = blender::nodes::fn_node_random_value_build_multi_function;
- ntype.gather_link_search_ops = blender::nodes::fn_node_random_value_gather_link_search;
+ node_type_init(&ntype, file_ns::fn_node_random_value_init);
+ node_type_update(&ntype, file_ns::fn_node_random_value_update);
+ ntype.draw_buttons = file_ns::fn_node_random_value_layout;
+ ntype.declare = file_ns::fn_node_random_value_declare;
+ ntype.build_multi_function = file_ns::fn_node_random_value_build_multi_function;
+ ntype.gather_link_search_ops = file_ns::fn_node_random_value_gather_link_search;
node_type_storage(
&ntype, "NodeRandomValue", node_free_standard_storage, node_copy_standard_storage);
nodeRegisterType(&ntype);
diff --git a/source/blender/nodes/function/nodes/node_fn_replace_string.cc b/source/blender/nodes/function/nodes/node_fn_replace_string.cc
index 881a3c68e7d..6e70686ae62 100644
--- a/source/blender/nodes/function/nodes/node_fn_replace_string.cc
+++ b/source/blender/nodes/function/nodes/node_fn_replace_string.cc
@@ -18,7 +18,7 @@
#include "node_function_util.hh"
-namespace blender::nodes {
+namespace blender::nodes::node_fn_replace_string_cc {
static void fn_node_replace_string_declare(NodeDeclarationBuilder &b)
{
@@ -53,14 +53,16 @@ static void fn_node_replace_string_build_multi_function(NodeMultiFunctionBuilder
builder.set_matching_fn(&substring_fn);
}
-} // namespace blender::nodes
+} // namespace blender::nodes::node_fn_replace_string_cc
void register_node_type_fn_replace_string()
{
+ namespace file_ns = blender::nodes::node_fn_replace_string_cc;
+
static bNodeType ntype;
fn_node_type_base(&ntype, FN_NODE_REPLACE_STRING, "Replace String", NODE_CLASS_CONVERTER, 0);
- ntype.declare = blender::nodes::fn_node_replace_string_declare;
- ntype.build_multi_function = blender::nodes::fn_node_replace_string_build_multi_function;
+ ntype.declare = file_ns::fn_node_replace_string_declare;
+ ntype.build_multi_function = file_ns::fn_node_replace_string_build_multi_function;
nodeRegisterType(&ntype);
}
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);
}
diff --git a/source/blender/nodes/function/nodes/node_fn_slice_string.cc b/source/blender/nodes/function/nodes/node_fn_slice_string.cc
index 5cb753e8f34..90dcfdc538c 100644
--- a/source/blender/nodes/function/nodes/node_fn_slice_string.cc
+++ b/source/blender/nodes/function/nodes/node_fn_slice_string.cc
@@ -18,7 +18,7 @@
#include "node_function_util.hh"
-namespace blender::nodes {
+namespace blender::nodes::node_fn_slice_string_cc {
static void fn_node_slice_string_declare(NodeDeclarationBuilder &b)
{
@@ -40,14 +40,16 @@ static void fn_node_slice_string_build_multi_function(NodeMultiFunctionBuilder &
builder.set_matching_fn(&slice_fn);
}
-} // namespace blender::nodes
+} // namespace blender::nodes::node_fn_slice_string_cc
void register_node_type_fn_slice_string()
{
+ namespace file_ns = blender::nodes::node_fn_slice_string_cc;
+
static bNodeType ntype;
fn_node_type_base(&ntype, FN_NODE_SLICE_STRING, "Slice String", NODE_CLASS_CONVERTER, 0);
- ntype.declare = blender::nodes::fn_node_slice_string_declare;
- ntype.build_multi_function = blender::nodes::fn_node_slice_string_build_multi_function;
+ ntype.declare = file_ns::fn_node_slice_string_declare;
+ ntype.build_multi_function = file_ns::fn_node_slice_string_build_multi_function;
nodeRegisterType(&ntype);
}
diff --git a/source/blender/nodes/function/nodes/node_fn_string_length.cc b/source/blender/nodes/function/nodes/node_fn_string_length.cc
index 63429d35993..0878f6a31da 100644
--- a/source/blender/nodes/function/nodes/node_fn_string_length.cc
+++ b/source/blender/nodes/function/nodes/node_fn_string_length.cc
@@ -20,7 +20,7 @@
#include "node_function_util.hh"
-namespace blender::nodes {
+namespace blender::nodes::node_fn_string_length_cc {
static void fn_node_string_length_declare(NodeDeclarationBuilder &b)
{
@@ -35,14 +35,16 @@ static void fn_node_string_length_build_multi_function(NodeMultiFunctionBuilder
builder.set_matching_fn(&str_len_fn);
}
-} // namespace blender::nodes
+} // namespace blender::nodes::node_fn_string_length_cc
void register_node_type_fn_string_length()
{
+ namespace file_ns = blender::nodes::node_fn_string_length_cc;
+
static bNodeType ntype;
fn_node_type_base(&ntype, FN_NODE_STRING_LENGTH, "String Length", NODE_CLASS_CONVERTER, 0);
- ntype.declare = blender::nodes::fn_node_string_length_declare;
- ntype.build_multi_function = blender::nodes::fn_node_string_length_build_multi_function;
+ ntype.declare = file_ns::fn_node_string_length_declare;
+ ntype.build_multi_function = file_ns::fn_node_string_length_build_multi_function;
nodeRegisterType(&ntype);
}
diff --git a/source/blender/nodes/function/nodes/node_fn_value_to_string.cc b/source/blender/nodes/function/nodes/node_fn_value_to_string.cc
index 96a56760664..af557c7b136 100644
--- a/source/blender/nodes/function/nodes/node_fn_value_to_string.cc
+++ b/source/blender/nodes/function/nodes/node_fn_value_to_string.cc
@@ -17,7 +17,7 @@
#include "node_function_util.hh"
#include <iomanip>
-namespace blender::nodes {
+namespace blender::nodes::node_fn_value_to_string_cc {
static void fn_node_value_to_string_declare(NodeDeclarationBuilder &b)
{
@@ -37,14 +37,16 @@ static void fn_node_value_to_string_build_multi_function(NodeMultiFunctionBuilde
builder.set_matching_fn(&to_str_fn);
}
-} // namespace blender::nodes
+} // namespace blender::nodes::node_fn_value_to_string_cc
void register_node_type_fn_value_to_string()
{
+ namespace file_ns = blender::nodes::node_fn_value_to_string_cc;
+
static bNodeType ntype;
fn_node_type_base(&ntype, FN_NODE_VALUE_TO_STRING, "Value to String", NODE_CLASS_CONVERTER, 0);
- ntype.declare = blender::nodes::fn_node_value_to_string_declare;
- ntype.build_multi_function = blender::nodes::fn_node_value_to_string_build_multi_function;
+ ntype.declare = file_ns::fn_node_value_to_string_declare;
+ ntype.build_multi_function = file_ns::fn_node_value_to_string_build_multi_function;
nodeRegisterType(&ntype);
}