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-19 22:42:02 +0300 |
commit | 65c1e00fb52303c2b25415fb40dc5e9d484179c8 (patch) | |
tree | ae40c7dfbc165169ea03566bf5ed3be05b978e79 | |
parent | 0a7a4d504b6790d8768d8e86bf0e8765c39aec71 (diff) |
Make sure the cache baking job cancels properly when interrupted in the
first stage.
-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); |