Blender
V4.3
source
blender
nodes
intern
node_multi_function.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#include "
NOD_multi_function.hh
"
6
7
#include "
BKE_node_runtime.hh
"
8
9
namespace
blender::nodes
{
10
11
NodeMultiFunctions::NodeMultiFunctions
(
const
bNodeTree
&
tree
)
12
{
13
tree
.ensure_topology_cache();
14
for
(
const
bNode
*bnode :
tree
.all_nodes()) {
15
if
(bnode->typeinfo->build_multi_function ==
nullptr
) {
16
continue
;
17
}
18
NodeMultiFunctionBuilder
builder{*bnode,
tree
};
19
bnode->typeinfo->build_multi_function(builder);
20
if
(builder.built_fn_ !=
nullptr
) {
21
map_.add_new(bnode, {builder.built_fn_, std::move(builder.owned_built_fn_)});
22
}
23
}
24
}
25
26
}
// namespace blender::nodes
BKE_node_runtime.hh
NOD_multi_function.hh
blender::nodes::NodeMultiFunctionBuilder
Definition
NOD_multi_function.hh:18
blender::nodes::NodeMultiFunctions::NodeMultiFunctions
NodeMultiFunctions(const bNodeTree &tree)
Definition
node_multi_function.cc:11
tree
KDTree_3d * tree
Definition
editors/mesh/mesh_mirror.cc:30
blender::nodes
Definition
BKE_node.hh:63
bNodeTree
Definition
DNA_node_types.h:675
bNode
Definition
DNA_node_types.h:357
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0