23 const bNode *node =
b.node_or_null();
26 "The number of elements in the list");
28 if (node !=
nullptr) {
30 b.add_input(type,
"Value").field_on_all();
33 if (node !=
nullptr) {
35 b.add_output(type,
"List").structure_type(StructureType::List);
58 if (!
U.experimental.use_geometry_nodes_lists) {
63 if (
params.node_tree().typeinfo->validate_link(socket_type,
SOCK_INT)) {
75 const int count =
params.extract_input<
int>(
"Count");
78 params.set_default_remaining_outputs();
#define NODE_CLASS_CONVERTER
#define NOD_REGISTER_NODE(REGISTER_FUNC)
#define NOD_inline_enum_accessors(member)
const StringRef socket_name
void operator()(LinkSearchOpParams ¶ms)
eNodeSocketDatatype socket_type
void node_register_type(bNodeType &ntype)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
static void node_layout(uiLayout *layout, bContext *, PointerRNA *ptr)
static void node_geo_exec(GeoNodeExecParams params)
static void node_rna(StructRNA *srna)
static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
ListPtr evaluate_field_to_list(GField field, const int64_t count)
PropertyRNA * RNA_def_node_enum(StructRNA *srna, const char *identifier, const char *ui_name, const char *ui_description, const EnumPropertyItem *static_items, const EnumRNAAccessors accessors, std::optional< int > default_value, const EnumPropertyItemFunc item_func, const bool allow_animation)
bool socket_type_supports_fields(const eNodeSocketDatatype socket_type)
const EnumPropertyItem * enum_items_filter(const EnumPropertyItem *original_item_array, FunctionRef< bool(const EnumPropertyItem &item)> fn)
void geo_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
const EnumPropertyItem rna_enum_node_socket_data_type_items[]
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
NodeDeclareFunction declare
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< blender::StringRef > name_opt, int icon, std::optional< blender::StringRef > placeholder=std::nullopt)