Blender V5.0
all_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 <atomic>
12
13#include "AS_asset_library.hh"
14
15namespace blender::asset_system {
16
18 std::atomic<bool> catalogs_dirty_ = true;
19
20 public:
22
23 std::optional<AssetLibraryReference> library_reference() const override;
24 void refresh_catalogs() override;
25
33 void rebuild_catalogs_from_nested(bool reload_nested_catalogs);
34
35 void tag_catalogs_dirty();
36 bool is_catalogs_dirty() const;
37};
38
39} // namespace blender::asset_system
std::optional< AssetLibraryReference > library_reference() const override
void rebuild_catalogs_from_nested(bool reload_nested_catalogs)
AssetLibrary(eAssetLibraryType library_type, StringRef name="", StringRef root_path="")