51 if (!catalog_service) {
72 if (!catalog_service) {
88 if (!catalog_service) {
98 if (new_path == catalog->
path || clean_new_path == catalog->
path) {
111 const std::optional<CatalogID> dst_parent_catalog_id)
114 if (!catalog_service) {
127 if (!dst_catalog && dst_parent_catalog_id) {
133 *catalog_service, src_catalog->
path.
name(), dst_catalog ? dst_catalog->
path.
c_str() :
"");
140 if (new_path == src_catalog->
path || clean_new_path == src_catalog->
path) {
154 if (!catalog_service) {
blender::bke::AssetCatalogService * BKE_asset_library_get_catalog_service(const ::AssetLibrary *library)
#define BLI_assert_unreachable()
bool BLI_uniquename_cb(UniquenameCheckCallback unique_check, void *arg, const char *defname, char delim, char *name, size_t name_len)
#define ND_SPACE_ASSET_PARAMS
constexpr const char * c_str() const
AssetCatalogPath cleanup() const
StringRefNull name() const
const char * c_str() const
AssetCatalogPath parent() const
AssetCatalog * create_catalog(const AssetCatalogPath &catalog_path)
bool write_to_disk(const CatalogFilePath &blend_file_path)
AssetCatalog * find_catalog_by_path(const AssetCatalogPath &path) const
void update_catalog_path(CatalogID catalog_id, const AssetCatalogPath &new_catalog_path)
void tag_has_unsaved_changes(AssetCatalog *edited_catalog)
AssetCatalog * find_catalog(CatalogID catalog_id) const
void prune_catalogs_by_id(CatalogID catalog_id)
void ED_asset_catalog_rename(::AssetLibrary *library, const CatalogID catalog_id, const StringRefNull new_name)
AssetCatalog * ED_asset_catalog_add(::AssetLibrary *library, StringRefNull name, StringRef parent_path)
bool ED_asset_catalogs_get_save_catalogs_when_file_is_saved()
void ED_asset_catalogs_save_from_main_path(::AssetLibrary *library, const Main *bmain)
void ED_asset_catalogs_set_save_catalogs_when_file_is_saved(const bool should_save)
void ED_asset_catalog_remove(::AssetLibrary *library, const CatalogID &catalog_id)
static bool catalog_name_exists_fn(void *arg, const char *name)
static std::string catalog_name_ensure_unique(AssetCatalogService &catalog_service, StringRefNull name, StringRef parent_path)
void ED_asset_catalog_move(::AssetLibrary *library, const CatalogID src_catalog_id, const std::optional< CatalogID > dst_parent_catalog_id)
static void unique_name(bNode *node)
const AssetCatalogService & catalog_service
Universally Unique Identifier according to RFC4122.
static bool save_catalogs_when_file_is_saved
static FT_Library library
void WM_main_add_notifier(unsigned int type, void *reference)