Rename any instance of scene layer or render layer in code with view layer
[blender.git] / source / blender / blenkernel / intern / particle_system.c
index 14f67aaea39c4d2fa24ada359dc3e59b9a00079c..da22751451270be65ca44ad9f7699534c2ff8325 100644 (file)
@@ -2933,7 +2933,7 @@ static void psys_update_path_cache(ParticleSimulationData *sim, float cfra, cons
                        skip = 1; /* draw visualization */
                else if (psys->pointcache->flag & PTCACHE_BAKING)
                        skip = 1; /* no need to cache paths while baking dynamics */
-               else if (psys_in_edit_mode(sim->eval_ctx->scene_layer, psys)) {
+               else if (psys_in_edit_mode(sim->eval_ctx->view_layer, psys)) {
                        if ((pset->flag & PE_DRAW_PART)==0)
                                skip = 1;
                        else if (part->childtype==0 && (psys->flag & PSYS_HAIR_DYNAMICS && psys->pointcache->flag & PTCACHE_BAKED)==0)