diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-17 12:36:59 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-17 12:36:59 +0300 |
commit | 5910dbdbf7dc7999597a680f81c261fa7bbcf011 (patch) | |
tree | edc962ebd6b11d89d3c29e571caeee0dcbe4ad79 /source/blender/nodes/function | |
parent | 0a40c671b0b5a6735bd0137ebcb3ab7568ae4481 (diff) |
Nodes: move some code from blenkernel directory to nodes
This also introduces the `blender::nodes` namespace. Eventually,
we want to move most/all of the node implementation files into
this namespace.
The reason for this file-move is that the code fits much better
into the `nodes` directory than in the `blenkernel` directory.
Diffstat (limited to 'source/blender/nodes/function')
5 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/nodes/function/node_function_util.hh b/source/blender/nodes/function/node_function_util.hh index 938cb5dd593..8e09ab0f24f 100644 --- a/source/blender/nodes/function/node_function_util.hh +++ b/source/blender/nodes/function/node_function_util.hh @@ -27,11 +27,11 @@ #include "DNA_node_types.h" #include "BKE_node.h" -#include "BKE_node_tree_multi_function.hh" #include "BLT_translation.h" #include "NOD_function.h" +#include "NOD_node_tree_multi_function.hh" #include "node_util.h" 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 3a145311a08..231771abbfa 100644 --- a/source/blender/nodes/function/nodes/node_fn_boolean_math.cc +++ b/source/blender/nodes/function/nodes/node_fn_boolean_math.cc @@ -71,7 +71,7 @@ static const blender::fn::MultiFunction &get_multi_function(bNode &bnode) return blender::fn::dummy_multi_function; } -static void node_boolean_expand_in_mf_network(blender::bke::NodeMFNetworkBuilder &builder) +static void node_boolean_expand_in_mf_network(blender::nodes::NodeMFNetworkBuilder &builder) { const blender::fn::MultiFunction &fn = get_multi_function(builder.bnode()); builder.set_matching_fn(fn); diff --git a/source/blender/nodes/function/nodes/node_fn_combine_strings.cc b/source/blender/nodes/function/nodes/node_fn_combine_strings.cc index a880933bc12..a545c4f0749 100644 --- a/source/blender/nodes/function/nodes/node_fn_combine_strings.cc +++ b/source/blender/nodes/function/nodes/node_fn_combine_strings.cc @@ -28,7 +28,7 @@ static bNodeSocketTemplate fn_node_combine_strings_out[] = { }; static void fn_node_combine_strings_expand_in_mf_network( - blender::bke::NodeMFNetworkBuilder &builder) + blender::nodes::NodeMFNetworkBuilder &builder) { static blender::fn::CustomMF_SI_SI_SO<std::string, std::string, std::string> combine_fn{ "Combine Strings", [](const std::string &a, const std::string &b) { return a + b; }}; diff --git a/source/blender/nodes/function/nodes/node_fn_float_compare.cc b/source/blender/nodes/function/nodes/node_fn_float_compare.cc index fb2c4d88caf..f8bd9a30940 100644 --- a/source/blender/nodes/function/nodes/node_fn_float_compare.cc +++ b/source/blender/nodes/function/nodes/node_fn_float_compare.cc @@ -90,7 +90,7 @@ static const blender::fn::MultiFunction &get_multi_function(bNode &node) return blender::fn::dummy_multi_function; } -static void node_float_compare_expand_in_mf_network(blender::bke::NodeMFNetworkBuilder &builder) +static void node_float_compare_expand_in_mf_network(blender::nodes::NodeMFNetworkBuilder &builder) { const blender::fn::MultiFunction &fn = get_multi_function(builder.bnode()); builder.set_matching_fn(fn); diff --git a/source/blender/nodes/function/nodes/node_fn_group_instance_id.cc b/source/blender/nodes/function/nodes/node_fn_group_instance_id.cc index c61c941ee0d..1e22cde721d 100644 --- a/source/blender/nodes/function/nodes/node_fn_group_instance_id.cc +++ b/source/blender/nodes/function/nodes/node_fn_group_instance_id.cc @@ -22,11 +22,11 @@ static bNodeSocketTemplate fn_node_group_instance_id_out[] = { }; static void fn_node_group_instance_id_expand_in_mf_network( - blender::bke::NodeMFNetworkBuilder &builder) + blender::nodes::NodeMFNetworkBuilder &builder) { - const blender::bke::DNode &node = builder.dnode(); + const blender::nodes::DNode &node = builder.dnode(); std::string id = "/"; - for (const blender::bke::DParentNode *parent = node.parent(); parent; + for (const blender::nodes::DParentNode *parent = node.parent(); parent; parent = parent->parent()) { id = "/" + parent->node_ref().name() + id; } |