Blender V4.3
asset_library_essentials.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
9#include "BKE_appdir.hh"
10
11#include "utils.hh"
12
15
16namespace blender::asset_system {
17
25
27{
28 static std::string path = []() {
29 const std::optional<std::string> datafiles_path = BKE_appdir_folder_id(
30 BLENDER_SYSTEM_DATAFILES, "assets");
31 return datafiles_path.value_or("");
32 }();
33 return path;
34}
35
36} // namespace blender::asset_system
@ BLENDER_SYSTEM_DATAFILES
std::optional< std::string > BKE_appdir_folder_id(int folder_id, const char *subfolder) ATTR_WARN_UNUSED_RESULT
Definition appdir.cc:704
@ ASSET_IMPORT_APPEND_REUSE
@ ASSET_LIBRARY_ESSENTIALS
std::string normalize_directory_path(StringRef directory)
StringRefNull essentials_directory_path()