Blender
V5.0
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
() :
AssetLibrary
(
ASSET_LIBRARY_LOCAL
)
14
{
15
this->
on_blend_save_handler_register
();
16
}
17
18
std::optional<AssetLibraryReference>
RuntimeAssetLibrary::library_reference
()
const
19
{
20
AssetLibraryReference
library_ref{};
21
library_ref.
type
=
ASSET_LIBRARY_LOCAL
;
22
library_ref.
custom_library_index
= -1;
23
return
library_ref;
24
}
25
26
}
// namespace blender::asset_system
ASSET_LIBRARY_LOCAL
@ ASSET_LIBRARY_LOCAL
Definition
DNA_asset_types.h:99
blender::asset_system::AssetLibrary::on_blend_save_handler_register
void on_blend_save_handler_register()
Definition
asset_library.cc:366
blender::asset_system::AssetLibrary::AssetLibrary
AssetLibrary(eAssetLibraryType library_type, StringRef name="", StringRef root_path="")
Definition
asset_library.cc:230
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:18
blender::asset_system
Definition
AS_asset_catalog.hh:24
runtime_library.hh
AssetLibraryReference
Definition
DNA_asset_types.h:143
AssetLibraryReference::type
short type
Definition
DNA_asset_types.h:144
AssetLibraryReference::custom_library_index
int custom_library_index
Definition
DNA_asset_types.h:151
Generated on
for Blender by
doxygen
1.16.1