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:42:02 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-03-19 22:42:02 +0300
commit65c1e00fb52303c2b25415fb40dc5e9d484179c8 (patch)
treeae40c7dfbc165169ea03566bf5ed3be05b978e79 /source/blender/editors
parent0a7a4d504b6790d8768d8e86bf0e8765c39aec71 (diff)
Make sure the cache baking job cancels properly when interrupted in the
first stage.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/io/io_cache_library.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/io/io_cache_library.c b/source/blender/editors/io/io_cache_library.c
index edb1901f9ba..cbb72f4b6d4 100644
--- a/source/blender/editors/io/io_cache_library.c
+++ b/source/blender/editors/io/io_cache_library.c
@@ -265,6 +265,9 @@ static void cache_library_bake_do(CacheLibraryBakeJob *data, short *stop, short
Scene *scene = data->scene;
int start_frame, end_frame;
+ if ((*stop) || (G.is_break))
+ return;
+
data->writer = PTC_writer_dupligroup(data->group->id.name, &data->eval_ctx, scene, data->group);
PTC_writer_init(data->writer, data->archive);