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-19 22:58:21 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-03-19 22:58:21 +0300
commit9ceb29d3cb4b04c03a1472642ba3548d344dcd5e (patch)
tree72bd4ef94f87c1257776c91e4fb0bdc3d9e9cf84 /source/blender/editors
parent65c1e00fb52303c2b25415fb40dc5e9d484179c8 (diff)
Combined storage of render and realtime data in caches.
Caches now create 2 new roots below the main 'top' object of Alembic: root and root_render for realtime and render data respectively. This makes it easy to switch the whole archive to either of the modes during baking and for constructing dupli caches. Alternatively individual objects could store hires versions of their data. This would also be more efficient if the cache contains many simple objects which don't have 2 different variants. However, such design decisions are difficult to make at this point and the implementation can be modifier later.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/io/io_cache_library.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/io/io_cache_library.c b/source/blender/editors/io/io_cache_library.c
index cbb72f4b6d4..7ea59e17e7b 100644
--- a/source/blender/editors/io/io_cache_library.c
+++ b/source/blender/editors/io/io_cache_library.c
@@ -305,11 +305,13 @@ static void cache_library_bake_startjob(void *customdata, short *stop, short *do
if (data->cachelib->eval_mode & CACHE_LIBRARY_EVAL_REALTIME) {
data->eval_ctx.mode = DAG_EVAL_VIEWPORT;
+ PTC_writer_archive_use_render(data->archive, false);
cache_library_bake_do(data, stop, do_update, progress);
}
if (data->cachelib->eval_mode & CACHE_LIBRARY_EVAL_RENDER) {
data->eval_ctx.mode = DAG_EVAL_RENDER;
+ PTC_writer_archive_use_render(data->archive, true);
cache_library_bake_do(data, stop, do_update, progress);
}