Blender V5.3
ED_asset_library.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
8
9#pragma once
10
11#include "BLI_function_ref.hh"
12#include "BLI_string_ref.hh"
13#include "DNA_asset_types.h"
14
15namespace blender {
16
18struct bContext;
20struct EnumPropertyItem;
22
23namespace asset_system {
24class AssetCatalog;
27} // namespace asset_system
28
29namespace ed::asset {
30
35int library_reference_to_enum_value(const AssetLibraryReference *library);
40AssetLibraryReference library_reference_from_enum_value(int value);
57const EnumPropertyItem *library_reference_to_rna_enum_itemf(
58 bool include_readonly,
59 bool include_current_file,
60 bool include_remote_libraries,
61 bool include_separate_online_essentials);
67const EnumPropertyItem *custom_libraries_rna_enum_itemf();
68
72asset_system::AssetCatalog &library_ensure_catalogs_in_path(
73 asset_system::AssetLibrary &library, const asset_system::AssetCatalogPath &path);
74
75AssetLibraryReference user_library_to_library_ref(const bUserAssetLibrary &user_library);
76
80void refresh_asset_library(const bContext *C, const AssetLibraryReference &library_ref);
81void refresh_asset_library(const bContext *C, const bUserAssetLibrary &user_library);
82void refresh_asset_library_from_asset(const bContext *C,
83 const asset_system::AssetRepresentation &asset);
84
85} // namespace ed::asset
86} // namespace blender
#define C
Definition RandGen.cpp:29
int library_reference_to_enum_value(const AssetLibraryReference *library)
void refresh_asset_library(const bContext *C, const AssetLibraryReference &library_ref)
AssetLibraryReference library_reference_from_enum_value(int value)
const EnumPropertyItem * custom_libraries_rna_enum_itemf()
asset_system::AssetCatalog & library_ensure_catalogs_in_path(asset_system::AssetLibrary &library, const asset_system::AssetCatalogPath &path)
void refresh_asset_library_from_asset(const bContext *C, const asset_system::AssetRepresentation &asset)
const EnumPropertyItem * library_reference_to_rna_enum_itemf(bool include_readonly, bool include_current_file, bool include_remote_libraries, bool include_separate_online_essentials)
AssetLibraryReference user_library_to_library_ref(const bUserAssetLibrary &user_library)
BMesh Iterators.