[Bf-blender-cvs] [65c1e00] alembic_pointcache: Make sure the cache baking job cancels properly when interrupted in the first stage.
Lukas Tönne
noreply at git.blender.org
Thu Mar 19 21:01:44 CET 2015
Commit: 65c1e00fb52303c2b25415fb40dc5e9d484179c8
Author: Lukas Tönne
Date: Thu Mar 19 20:42:02 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rB65c1e00fb52303c2b25415fb40dc5e9d484179c8
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