[Bf-blender-cvs] [cc92d83d398] blender2.8: Fix T57011: Crash pressing Free Light Cache during Indirect Light Cache Baking
Philipp Oeser
noreply at git.blender.org
Thu Oct 4 11:27:41 CEST 2018
Commit: cc92d83d398854f461fe042959c384306d38320a
Author: Philipp Oeser
Date: Thu Oct 4 11:24:17 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBcc92d83d398854f461fe042959c384306d38320a
Fix T57011: Crash pressing Free Light Cache during Indirect Light Cache
Baking
just kill the bake job prior to freeing
Reviewed By: fclem
Differential Revision: https://developer.blender.org/D3764
===================================================================
M source/blender/editors/render/render_shading.c
===================================================================
diff --git a/source/blender/editors/render/render_shading.c b/source/blender/editors/render/render_shading.c
index 78d3373c88c..43680107dbd 100644
--- a/source/blender/editors/render/render_shading.c
+++ b/source/blender/editors/render/render_shading.c
@@ -833,6 +833,10 @@ static int light_cache_free_exec(bContext *C, wmOperator *UNUSED(op))
{
Scene *scene = CTX_data_scene(C);
+ /* kill potential bake job first (see T57011) */
+ wmWindowManager *wm = CTX_wm_manager(C);
+ WM_jobs_kill_type(wm, scene, WM_JOB_TYPE_LIGHT_BAKE);
+
if (!scene->eevee.light_cache) {
return OPERATOR_CANCELLED;
}
More information about the Bf-blender-cvs
mailing list