Blender
V5.3
source
blender
asset_system
intern
library_types
runtime_library.cc
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
#include "
runtime_library.hh
"
10
11
namespace
blender::asset_system
{
12
13
RuntimeAssetLibrary::RuntimeAssetLibrary
()
14
:
AssetLibrary
(
ASSET_LIBRARY_LOCAL
,
/*is_read_only=*/
false
)
15
{
16
this->
on_blend_save_handler_register
();
17
}
18
19
std::optional<AssetLibraryReference>
RuntimeAssetLibrary::library_reference
()
const
20
{
21
AssetLibraryReference
library_ref{};
22
library_ref.
type
=
ASSET_LIBRARY_LOCAL
;
23
library_ref.
custom_library_index
= -1;
24
return
library_ref;
25
}
26
27
std::optional<eAssetImportMethod>
RuntimeAssetLibrary::import_method
()
const
28
{
29
return
{};
30
}
31
32
}
// namespace blender::asset_system
blender::asset_system::AssetLibrary::on_blend_save_handler_register
void on_blend_save_handler_register()
Definition
asset_library.cc:424
blender::asset_system::AssetLibrary::AssetLibrary
AssetLibrary(eAssetLibraryType library_type, bool is_read_only, StringRef name="", StringRef root_path="")
Definition
asset_library.cc:223
blender::asset_system::RuntimeAssetLibrary::RuntimeAssetLibrary
RuntimeAssetLibrary()
Definition
runtime_library.cc:13
blender::asset_system::RuntimeAssetLibrary::library_reference
std::optional< AssetLibraryReference > library_reference() const override
Definition
runtime_library.cc:19
blender::asset_system::RuntimeAssetLibrary::import_method
std::optional< eAssetImportMethod > import_method() const override
Definition
runtime_library.cc:27
blender::asset_system
Definition
AS_asset_catalog.hh:24
blender::ASSET_LIBRARY_LOCAL
@ ASSET_LIBRARY_LOCAL
Definition
DNA_asset_types.h:28
blender::false
return false
Definition
bmesh_operator_api_inline.hh:200
runtime_library.hh
blender::AssetLibraryReference
Definition
DNA_asset_types.h:176
blender::AssetLibraryReference::type
eAssetLibraryType type
Definition
DNA_asset_types.h:177
blender::AssetLibraryReference::custom_library_index
int custom_library_index
Definition
DNA_asset_types.h:184
Generated on
for Blender by
doxygen
1.18.0