Blender Git Commit Log
Git Commits -> Revision 8ab52da
Revision 8ab52da by Sybren A. Stüvel (master) March 18, 2021, 10:09 (GMT) |
BLO: Functions for temporarily loading a single datablock This introduces two functions to the blenloader module, here shown as calls for brevity: * `temp_lib_ctx = BLO_library_temp_load_id(real_main, blend_file_path, idcode, idname, reports);` * Now the data in `temp_lib_ctx->temp_id` can be used (but ought not to be not assigned to non-temp datablocks). * `BLO_library_temp_free(temp_lib_ctx);` The first loads a datablock from a blend file, and returns it as part of a `struct TempLibraryContext`. This struct contains the temp-loaded ID, as well as enough information to correctly free everything again. Differential Revision: https://developer.blender.org/D10736 |
Commit Details:
Full Hash: 8ab52daa3aafcec7c8780653090c2be49eeb6748
Parent Commit: aeff590
Lines Changed: +80, -0
1 Added Path:
/source/blender/blenloader/intern/readfile_tempload.c (+58, -0) (View)