Rename any instance of scene layer or render layer in code with view layer
[blender.git] / source / blender / depsgraph / intern / depsgraph_tag.cc
index 607ec675a3928d87ab0313a394cb6a2d89364e3a..58bae1f5cc6333579aa885c884d4588b4ee0219c 100644 (file)
@@ -352,10 +352,10 @@ void deg_id_tag_update(Main *bmain, ID *id, int flag)
 {
        lib_id_recalc_tag_flag(bmain, id, flag);
        LINKLIST_FOREACH(Scene *, scene, &bmain->scene) {
-               LINKLIST_FOREACH(SceneLayer *, scene_layer, &scene->render_layers) {
+               LINKLIST_FOREACH(ViewLayer *, view_layer, &scene->view_layers) {
                        Depsgraph *depsgraph =
                                (Depsgraph *)BKE_scene_get_depsgraph(scene,
-                                                                    scene_layer,
+                                                                    view_layer,
                                                                     false);
                        if (depsgraph != NULL) {
                                deg_graph_id_tag_update(bmain, depsgraph, id, flag);
@@ -461,10 +461,10 @@ void DEG_graph_on_visible_update(Main *bmain, Depsgraph *depsgraph)
 void DEG_on_visible_update(Main *bmain, const bool UNUSED(do_time))
 {
        LINKLIST_FOREACH(Scene *, scene, &bmain->scene) {
-               LINKLIST_FOREACH(SceneLayer *, scene_layer, &scene->render_layers) {
+               LINKLIST_FOREACH(ViewLayer *, view_layer, &scene->view_layers) {
                        Depsgraph *depsgraph =
                                (Depsgraph *)BKE_scene_get_depsgraph(scene,
-                                                                    scene_layer,
+                                                                    view_layer,
                                                                     false);
                        if (depsgraph != NULL) {
                                DEG_graph_on_visible_update(bmain, depsgraph);