89 "Geometry/Operations",
99 "Grease Pencil/Operations",
100 "Grease Pencil/Write",
125 "Utilities/Rotation",
126 "Utilities/Deprecated",
200 bool add_separator =
true;
205 add_separator =
false;
219 add_separator =
false;
271 if (!loading_finished) {
272 layout->
label(
IFACE_(
"Loading Asset Libraries"), ICON_STATUS_INFO);
285 layout->
menu(
"NODE_MT_node_unassigned_assets",
IFACE_(
"Unassigned"), ICON_FILE_HIDDEN);
299 const StringRefNull operator_id =
"NODE_OT_swap_group_asset";
325 "Node group assets not assigned to a catalog.\n"
326 "Catalogs can be assigned in the Asset Browser");
367 switch (operator_type) {
369 operator_id =
"NODE_OT_swap_group_asset";
372 operator_id =
"NODE_OT_add_group_asset";
Main runtime representation of an asset.
#define IDP_int_get(prop)
#define STRNCPY_UTF8(dst, src)
bool contains_as(const ForwardKey &key) const
constexpr bool is_empty() const
const std::string & str() const
void foreach_child(ItemIterFn callback) const
AssetCatalogPath catalog_path() const
bool has_children() const
void foreach_root_item(ItemIterFn callback) const
const AssetCatalogTreeItem * find_item(const AssetCatalogPath &path) const
AssetLibraryReference all_library_reference()
void all_library_reload_catalogs_if_dirty()
bool is_loaded(const AssetLibraryReference *library_reference)
void asset_reading_region_listen_fn(const wmRegionListenerParams *params)
void draw_node_menu_for_catalog(const asset_system::AssetCatalogTreeItem &item, const StringRefNull operator_id, const StringRefNull menu_name, ui::Layout &layout)
void draw_asset_menu_item(const asset_system::AssetRepresentation *asset, ui::Layout &layout, FunctionRef< void(ui::Layout &, BIFIconID)> draw_item_fn)
AssetItemTree build_filtered_all_catalog_tree(const AssetLibraryReference &library_ref, const bContext &C, const AssetFilterSettings &filter_settings, FunctionRef< bool(const AssetMetaData &)> meta_data_filter={}, const std::optional< StringRef > skip_prefix=std::nullopt)
static bool all_loading_finished()
void ui_template_node_asset_menu_items(ui::Layout &layout, const bContext &C, StringRef catalog_path, const ui::NodeAssetMenuOperatorType operator_type)
static Set< StringRef > get_builtin_menus(const int tree_type)
static void node_unassigned_assets_draw(const bContext *C, Menu *menu)
static void root_catalogs_draw(const bContext *C, Menu *menu, const StringRefNull operator_id)
MenuType swap_root_catalogs_menu_type()
MenuType catalog_assets_menu_type()
MenuType add_root_catalogs_menu_type()
static asset::AssetItemTree build_catalog_tree(const bContext &C, const bNodeTree &node_tree)
static void add_root_catalogs_draw(const bContext *C, Menu *menu)
static void swap_root_catalogs_draw(const bContext *C, Menu *menu)
static void node_catalog_assets_draw(const bContext *C, Menu *menu)
MenuType unassigned_assets_menu_type()
static bool node_add_menu_poll(const bContext *C, MenuType *)
NodeAssetMenuOperatorType
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
std::optional< StringRefNull > CTX_data_string_get(const bContext *C, const char *member)
IDProperty * BKE_asset_metadata_idprop_find(const AssetMetaData *asset_data, const char *name) ATTR_WARN_UNUSED_RESULT
SpaceNode * CTX_wm_space_node(const bContext *C)
struct bNodeTree * edittree
ed::space_node::SpaceNode_Runtime * runtime
bke::bNodeTreeType * typeinfo
std::optional< std::string > asset_catalog_path_prefix
MultiValueMap< asset_system::AssetCatalogPath, asset_system::AssetRepresentation * > assets_per_path
Vector< asset_system::AssetRepresentation * > unassigned_assets
asset_system::AssetCatalogTree catalogs
std::shared_ptr< asset::AssetItemTree > assets_for_menu
void label(StringRef name, int icon)
void menu_contents(StringRef menuname)
void menu(MenuType *mt, std::optional< StringRef > name, int icon)
Layout & column(bool align)
void context_string_set(StringRef name, StringRef value)
void separator(float factor=1.0f, LayoutSeparatorType type=LayoutSeparatorType::Auto)