Blender V5.3
ED_asset_catalog.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
17
18#pragma once
19
20#include <optional>
21
22#include "AS_asset_catalog.hh"
23
24#include "BLI_string_ref.hh"
25
26namespace blender {
27
29struct Main;
30
31namespace asset_system {
32class AssetLibrary;
33}
34
35namespace ed::asset {
36
39 const AssetWeakReference &reference);
40
47
53
55 StringRefNull name,
56 StringRef parent_path = nullptr);
58 const asset_system::CatalogID &catalog_id);
59
61 asset_system::CatalogID catalog_id,
62 StringRefNull new_name);
75 asset_system::CatalogID src_catalog_id,
76 std::optional<asset_system::CatalogID> dst_parent_catalog_id = std::nullopt);
77
78} // namespace ed::asset
79} // namespace blender
void catalog_remove(asset_system::AssetLibrary *library, const asset_system::CatalogID &catalog_id)
bool catalogs_read_only(const asset_system::AssetLibrary &library)
void catalogs_save_from_main_path(asset_system::AssetLibrary *library, const Main *bmain)
asset_system::AssetCatalog * catalog_add(asset_system::AssetLibrary *library, StringRefNull name, StringRef parent_path=nullptr)
void catalog_move(asset_system::AssetLibrary *library, asset_system::CatalogID src_catalog_id, std::optional< asset_system::CatalogID > dst_parent_catalog_id=std::nullopt)
void catalogs_save_from_asset_reference(asset_system::AssetLibrary &library, const AssetWeakReference &reference)
void catalogs_set_save_catalogs_when_file_is_saved(bool should_save)
void catalog_rename(asset_system::AssetLibrary *library, asset_system::CatalogID catalog_id, StringRefNull new_name)
BMesh Iterators.