23 if (
ID *local_id =
asset.local_id()) {
27 std::string blend_path =
asset.full_library_path();
28 if (blend_path.empty()) {
40 asset.get_name().c_str(),
49 asset.get_name().c_str(),
60 asset.get_name().c_str(),
Main runtime representation of an asset.
#define BLI_assert_unreachable()
external readfile function prototypes.
@ BLO_LIBLINK_APPEND_RECURSIVE
@ BLO_LIBLINK_APPEND_ASSET_DATA_CLEAR
@ BLO_LIBLINK_APPEND_LOCAL_ID_REUSE
@ ASSET_IMPORT_APPEND_REUSE
ID * asset_local_id_ensure_imported(Main &bmain, const asset_system::AssetRepresentation &asset)
ID * WM_file_append_datablock(Main *bmain, Scene *scene, ViewLayer *view_layer, View3D *v3d, const char *filepath, const short id_code, const char *id_name, int flag)
ID * WM_file_link_datablock(Main *bmain, Scene *scene, ViewLayer *view_layer, View3D *v3d, const char *filepath, const short id_code, const char *id_name, int flag)