diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2015-03-19 22:42:02 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-03-26 16:13:40 +0300 |
commit | b8c29051f97c7c0225fd07d8be87796ab2ca0d79 (patch) | |
tree | 6265a78f199cf39ee49e38acf275235c5c0f8239 /source | |
parent | 14d401ac124f1de357c3a0a22429128edc4569cf (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.c | 3 |
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); |