Rename any instance of scene layer or render layer in code with view layer
[blender.git] / source / creator / creator_args.c
index 4b92c5fde5bf1223215163af01bedf4f57ce82db..6b47d7c34742d5e84542f2188a4b17d9e2af9f20 100644 (file)
@@ -440,9 +440,9 @@ static void render_set_depgraph(bContext *C, Render *re)
         * Apparently, CTX_data_layer is crashing here (context's layer
         * is NULL for old files, and there is no workspace).
         */
-       SceneLayer *scene_layer = scene->render_layers.first;
-       Depsgraph *depsgraph = BKE_scene_get_depsgraph(scene, scene_layer, true);
-       DEG_graph_relations_update(depsgraph, bmain, scene, scene_layer);
+       ViewLayer *view_layer = scene->view_layers.first;
+       Depsgraph *depsgraph = BKE_scene_get_depsgraph(scene, view_layer, true);
+       DEG_graph_relations_update(depsgraph, bmain, scene, view_layer);
        DEG_graph_on_visible_update(bmain, depsgraph);
 
        RE_SetDepsgraph(re, depsgraph);