21 static constexpr const char *
node_idname =
"GeometryNodeIndexSwitch";
29 return {&storage.
items, &storage.items_num,
nullptr};
45 return "Item_" + std::to_string(item.
identifier);
struct IndexSwitchItem IndexSwitchItem
static void blend_write(BlendWriter *writer, const bNode &node)
static constexpr bool has_name
static void init(bNode &node, IndexSwitchItem &item)
static StructRNA * item_srna
static constexpr bool has_single_identifier_str
static std::string socket_identifier_for_item(const IndexSwitchItem &item)
static void destruct_item(IndexSwitchItem *)
static void blend_read_data(BlendDataReader *reader, bNode &node)
static socket_items::SocketItemsRef< IndexSwitchItem > get_items_from_node(bNode &node)
static void copy_item(const IndexSwitchItem &src, IndexSwitchItem &dst)
static constexpr bool has_type
static constexpr const char * node_idname