17 b.use_custom_socket_order();
18 b.allow_any_socket_order();
22 "Bundles to join together on the top level for each bundle. When there are duplicates, "
24 "the first occurrence is used");
25 b.add_output<
decl::Bundle>(
"Bundle"_ustr).align_with_previous().propagate_all();
33 if (bundles.
values.is_empty()) {
40 for (; bundle_i < bundles.
values.size(); bundle_i++) {
43 output_bundle = std::move(bundle);
54 for (; bundle_i < bundles.
values.size(); bundle_i++) {
59 for (
const auto &item : bundle->
items()) {
60 if (!mutable_output_bundle.
add(item.key, item.value)) {
61 overridden_keys.
add(item.key);
67 std::string message = fmt::format(
68 "{}: {}",
TIP_(
"Duplicate keys"), fmt::join(overridden_keys,
", "));
72 params.
set_output(
"Bundle"_ustr, output_bundle);
#define NODE_CLASS_CONVERTER
#define NOD_REGISTER_NODE(REGISTER_FUNC)
T & ensure_mutable_inplace()
bool add(BundleKey key, const BundleItemValue &value)
static BundlePtr create()
BundleItemMap::ItemIterator items() const
void error_message_add(const NodeWarningType type, StringRef message) const
T extract_input(const UString identifier)
void set_default_remaining_outputs()
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
ImplicitSharingPtr< Bundle > BundlePtr
void sh_geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare