Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-03-16 17:57:00 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-03-18 13:09:15 +0300
commit8ab52daa3aafcec7c8780653090c2be49eeb6748 (patch)
tree570d7a0030b81609b5880b1e2714efb62339bbf5 /source/blender/blenloader/CMakeLists.txt
parentaeff59073b23d50a39eb0a614d3907ac0d04994a (diff)
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
Diffstat (limited to 'source/blender/blenloader/CMakeLists.txt')
-rw-r--r--source/blender/blenloader/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenloader/CMakeLists.txt b/source/blender/blenloader/CMakeLists.txt
index b65a3c4d58e..ee9b9a49768 100644
--- a/source/blender/blenloader/CMakeLists.txt
+++ b/source/blender/blenloader/CMakeLists.txt
@@ -50,6 +50,7 @@ set(SRC
intern/blend_validate.c
intern/readblenentry.c
intern/readfile.c
+ intern/readfile_tempload.c
intern/undofile.c
intern/versioning_250.c
intern/versioning_260.c