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
path: root/source
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-26 16:13:40 +0300
commitb8c29051f97c7c0225fd07d8be87796ab2ca0d79 (patch)
tree6265a78f199cf39ee49e38acf275235c5c0f8239 /source
parent14d401ac124f1de357c3a0a22429128edc4569cf (diff)
Make sure the cache baking job cancels properly when interrupted in the
first stage.
Diffstat (limited to 'source')
-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);