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:
authorLukas Tönne <lukas.toenne@gmail.com>2015-03-03 18:01:09 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-03-03 18:01:09 +0300
commit806a276f300f482ba15a4e7ce9cadf0342c67eba (patch)
treef4c5703feb4555c62b803ee652d4c7ebed52c300 /source/blender/editors
parenta597d07011fca4b27b95d60067d902248be17cd9 (diff)
Set reader/writer archive as a separate step outside the constructors.
This allows nicer creation of readers/writers //before// actually opening the archive. This in turns can simplify code quite a bit.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/io/io_cache_library.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/io/io_cache_library.c b/source/blender/editors/io/io_cache_library.c
index be109b5c3d1..c1b5da6a8ec 100644
--- a/source/blender/editors/io/io_cache_library.c
+++ b/source/blender/editors/io/io_cache_library.c
@@ -272,7 +272,8 @@ static void cache_library_bake_startjob(void *customdata, short *stop, short *do
/* disable reading for the duration of the bake process */
data->cachelib->flag &= ~CACHE_LIBRARY_READ;
- data->archive = BKE_cache_library_writers(scene, required_mode, data->cachelib, &data->writers);
+ BKE_cache_library_writers(scene, required_mode, data->cachelib, &data->writers);
+ data->archive = BKE_cache_library_writers_open_archive(scene, data->cachelib, &data->writers);
/* XXX where to get this from? */
start_frame = scene->r.sfra;