Blender V5.3
blender_project.cc File Reference
#include <map>
#include <mutex>
#include <shared_mutex>
#include <vector>
#include "BKE_blender_project.hh"
#include "BKE_global.hh"
#include "BKE_main.hh"
#include "BKE_path_templates.hh"
#include "BKE_preferences.h"
#include "BKE_recents.hh"
#include "BLI_fileops.hh"
#include "BLI_function_ref.hh"
#include "BLI_listbase.hh"
#include "BLI_path_utils.hh"
#include "BLI_string.hh"
#include "BLI_string_ref.hh"
#include "BLI_string_utils.hh"
#include "RNA_types.hh"
#include "DNA_asset_types.h"
#include "DNA_userdef_types.h"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke

Functions

static std::optional< bke::BlenderProject > & blender::get_project ()
static std::shared_mutex & blender::get_project_mutex ()
void blender::bke::with_blender_project_read_lock (FunctionRef< void()> lambda)
void blender::bke::with_blender_project_write_lock (FunctionRef< void()> lambda)
bool blender::bke::is_valid_project_variable_name (StringRef name)
std::string blender::bke::ensure_is_valid_project_variable_name (StringRef name)
std::string blender::BKE_is_path_inside_blender_project (const char *path)
bke::BlenderProject * blender::BKE_blender_project_get (const Main *bmain)
bool blender::BKE_blender_project_init (StringRef name, StringRef root_path)
void blender::BKE_blender_project_refresh (Main *bmain, const char *filepath)
void blender::BKE_blender_project_clear ()
std::string blender::BKE_blender_project_path_make_relative (StringRef path, bool path_is_template, const bke::BlenderProject &project)
std::string blender::BKE_blender_project_path_resolve (StringRef path, const bke::BlenderProject &project)
bool blender::BKE_blender_project_dir_is_project (StringRef path)

Recent Projects

Stored in BLENDER_RECENTS_FILE.

using blender::RecentProjectsTOML = std::vector<std::map<std::string, std::string>>
Vector< RecentProject > blender::BKE_blender_project_recent_get ()
static void blender::recent_projects_set (const Span< RecentProject > projects)
void blender::BKE_blender_project_recent_update (const Main *bmain)
void blender::BKE_blender_project_recent_clear (bool only_missing)