Rename any instance of scene layer or render layer in code with view layer
[blender.git] / source / blender / editors / physics / physics_pointcache.c
index 7dab98036c6a79c4f5d67d8caa78239ca9969902..a859f664dc8ef7a902cdcd705a001643132bc513 100644 (file)
@@ -166,7 +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->view_layer = CTX_data_view_layer(C);
        baker->depsgraph = CTX_data_depsgraph(C);
        baker->bake = RNA_boolean_get(op->ptr, "bake");
        baker->render = 0;