Blender V4.3
asset_edit.cc File Reference
#include <memory>
#include <utility>
#include "BLI_fileops.h"
#include "BLI_path_utils.hh"
#include "BLI_string.h"
#include "BLI_vector.hh"
#include "DNA_asset_types.h"
#include "DNA_space_types.h"
#include "AS_asset_library.hh"
#include "BKE_asset.hh"
#include "BKE_asset_edit.hh"
#include "BKE_blendfile.hh"
#include "BKE_blendfile_link_append.hh"
#include "BKE_global.hh"
#include "BKE_idtype.hh"
#include "BKE_lib_id.hh"
#include "BKE_lib_remap.hh"
#include "BKE_library.hh"
#include "BKE_main.hh"
#include "BKE_packedFile.hh"
#include "BKE_preferences.h"
#include "BKE_report.hh"
#include "BLO_read_write.hh"
#include "BLO_readfile.hh"
#include "BLO_writefile.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "MEM_guardedalloc.h"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::bke
 

Functions

static IDblender::bke::asset_link_id (Main &global_main, const ID_Type id_type, const char *filepath, const char *asset_name, ReportList *reports=nullptr)
 
static std::string blender::bke::asset_root_path_for_save (const bUserAssetLibrary &user_library, const ID_Type id_type)
 
static std::string blender::bke::asset_blendfile_path_for_save (const bUserAssetLibrary &user_library, const StringRef base_name, const ID_Type id_type, ReportList &reports)
 
static void blender::bke::asset_main_create_expander (void *, Main *, void *vid)
 
static Mainblender::bke::asset_main_create_from_ID (Main &bmain_src, ID &id_asset, ID **id_asset_new)
 
static bool blender::bke::asset_write_in_library (Main &bmain, const ID &id_const, const StringRef name, const StringRefNull filepath, std::string &final_full_file_path, ReportList &reports)
 
static IDblender::bke::asset_reload (Main &global_main, ID &id, ReportList *reports)
 
static AssetWeakReference blender::bke::asset_weak_reference_for_user_library (const bUserAssetLibrary &user_library, const short idcode, const char *idname, const char *filepath)
 
static AssetWeakReference blender::bke::asset_weak_reference_for_essentials (const short idcode, const char *idname, const char *filepath)
 
std::optional< std::string > blender::bke::asset_edit_id_save_as (Main &global_main, const ID &id, StringRefNull name, const bUserAssetLibrary &user_library, AssetWeakReference &r_weak_ref, ReportList &reports)
 
bool blender::bke::asset_edit_id_save (Main &global_main, const ID &id, ReportList &reports)
 
IDblender::bke::asset_edit_id_revert (Main &global_main, ID &id, ReportList &reports)
 
bool blender::bke::asset_edit_id_delete (Main &global_main, ID &id, ReportList &reports)
 
IDblender::bke::asset_edit_id_from_weak_reference (Main &global_main, ID_Type id_type, const AssetWeakReference &weak_ref)
 
std::optional< AssetWeakReferenceblender::bke::asset_edit_weak_reference_from_id (const ID &id)
 
bool blender::bke::asset_edit_id_is_editable (const ID &id)
 
bool blender::bke::asset_edit_id_is_writable (const ID &id)