[Bf-blender-cvs] [168867f] gooseberry: Make sure the cache baking job cancels properly when interrupted in the first stage.
Lukas Tönne
noreply at git.blender.org
Mon Mar 23 13:04:26 CET 2015
Commit: 168867f3b00b5fbe8d9070617eb10f5afb176192
Author: Lukas Tönne
Date: Thu Mar 19 20:42:02 2015 +0100
Branches: gooseberry
https://developer.blender.org/rB168867f3b00b5fbe8d9070617eb10f5afb176192
Make sure the cache baking job cancels properly when interrupted in the
first stage.
===================================================================
M source/blender/editors/io/io_cache_library.c
===================================================================
diff --git a/source/blender/editors/io/io_cache_library.c b/source/blender/editors/io/io_cache_library.c
index edb1901..cbb72f4 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);
More information about the Bf-blender-cvs
mailing list