Rename any instance of scene layer or render layer in code with view layer
[blender.git] / source / blender / editors / screen / screen_ops.c
index cb53de23983545ddec6d0b9b55b706f0db3ddb05..d4a424f8c38b4b23220a46d15cc6aaedb6d7c457 100644 (file)
@@ -574,7 +574,7 @@ int ED_operator_mask(bContext *C)
                        case SPACE_IMAGE:
                        {
                                SpaceImage *sima = sa->spacedata.first;
-                               SceneLayer *sl = CTX_data_scene_layer(C);
+                               ViewLayer *sl = CTX_data_view_layer(C);
                                return ED_space_image_check_show_maskedit(sl, sima);
                        }
                }
@@ -3408,7 +3408,7 @@ static int screen_animation_step(bContext *C, wmOperator *UNUSED(op), const wmEv
        if (screen->animtimer && screen->animtimer == event->customdata) {
                Main *bmain = CTX_data_main(C);
                Scene *scene = CTX_data_scene(C);
-               SceneLayer *scene_layer = CTX_data_scene_layer(C);
+               ViewLayer *view_layer = CTX_data_view_layer(C);
                struct Depsgraph *depsgraph = CTX_data_depsgraph(C);
                wmTimer *wt = screen->animtimer;
                ScreenAnimData *sad = wt->customdata;
@@ -3520,7 +3520,7 @@ static int screen_animation_step(bContext *C, wmOperator *UNUSED(op), const wmEv
                }
                
                /* since we follow drawflags, we can't send notifier but tag regions ourselves */
-               ED_update_for_newframe(bmain, scene, scene_layer, depsgraph);
+               ED_update_for_newframe(bmain, scene, view_layer, depsgraph);
 
                for (window = wm->windows.first; window; window = window->next) {
                        const bScreen *win_screen = WM_window_get_active_screen(window);