Workspace: Move engines to workspace and Properties Editor cleanup
[blender.git] / source / blender / editors / physics / physics_pointcache.c
index d4f949880eecab2f5aa3f73dfd3b3d7803085b73..74946e3f44d39abd8caeca53ada93ad037d9db64 100644 (file)
@@ -166,6 +166,7 @@ static PTCacheBaker *ptcache_baker_create(bContext *C, wmOperator *op, bool all)
 
        baker->main = CTX_data_main(C);
        baker->scene = CTX_data_scene(C);
+       baker->scene_layer = CTX_data_scene_layer(C);
        baker->bake = RNA_boolean_get(op->ptr, "bake");
        baker->render = 0;
        baker->anim_init = 0;