Rename any instance of scene layer or render layer in code with view layer
[blender.git] / source / blender / editors / space_buttons / space_buttons.c
index 3607f81772161ef6aa72d507fe11dad13065ea87..74b20360a53bcba0cc057a0d24647654f2a55f0f 100644 (file)
@@ -147,8 +147,8 @@ static void buttons_main_region_draw(const bContext *C, ARegion *ar)
                ED_region_panels(C, ar, "scene", sbuts->mainb, vertical);
        else if (sbuts->mainb == BCONTEXT_RENDER)
                ED_region_panels(C, ar, "render", sbuts->mainb, vertical);
-       else if (sbuts->mainb == BCONTEXT_RENDER_LAYER)
-               ED_region_panels(C, ar, "render_layer", sbuts->mainb, vertical);
+       else if (sbuts->mainb == BCONTEXT_VIEW_LAYER)
+               ED_region_panels(C, ar, "view_layer", sbuts->mainb, vertical);
        else if (sbuts->mainb == BCONTEXT_WORLD)
                ED_region_panels(C, ar, "world", sbuts->mainb, vertical);
        else if (sbuts->mainb == BCONTEXT_WORKSPACE)
@@ -248,7 +248,7 @@ static void buttons_area_listener(
                        switch (wmn->data) {
                                case ND_RENDER_OPTIONS:
                                        buttons_area_redraw(sa, BCONTEXT_RENDER);
-                                       buttons_area_redraw(sa, BCONTEXT_RENDER_LAYER);
+                                       buttons_area_redraw(sa, BCONTEXT_VIEW_LAYER);
                                        break;
                                case ND_WORLD:
                                        buttons_area_redraw(sa, BCONTEXT_WORLD);