Rename any instance of scene layer or render layer in code with view layer
[blender.git] / source / blender / editors / space_outliner / outliner_edit.c
index 5d0befece0d44350cf3e2b110bcde761815faf2d..3d89ee8e371fa4a2bc23ae9e819bd9f642f09757 100644 (file)
@@ -978,7 +978,7 @@ static int outliner_open_back(TreeElement *te)
 static int outliner_show_active_exec(bContext *C, wmOperator *UNUSED(op))
 {
        SpaceOops *so = CTX_wm_space_outliner(C);
 static int outliner_show_active_exec(bContext *C, wmOperator *UNUSED(op))
 {
        SpaceOops *so = CTX_wm_space_outliner(C);
-       SceneLayer *sl = CTX_data_scene_layer(C);
+       ViewLayer *sl = CTX_data_view_layer(C);
        ARegion *ar = CTX_wm_region(C);
        View2D *v2d = &ar->v2d;
        
        ARegion *ar = CTX_wm_region(C);
        View2D *v2d = &ar->v2d;
        
@@ -2174,8 +2174,8 @@ static int scene_drop_invoke(bContext *C, wmOperator *op, const wmEvent *event)
 
                BKE_collection_object_add(scene, sc, ob);
 
 
                BKE_collection_object_add(scene, sc, ob);
 
-               for (SceneLayer *sl = scene->render_layers.first; sl; sl = sl->next) {
-                       Base *base = BKE_scene_layer_base_find(sl, ob);
+               for (ViewLayer *sl = scene->view_layers.first; sl; sl = sl->next) {
+                       Base *base = BKE_view_layer_base_find(sl, ob);
                        if (base) {
                                ED_object_base_select(base, BA_SELECT);
                        }
                        if (base) {
                                ED_object_base_select(base, BA_SELECT);
                        }