Rename any instance of scene layer or render layer in code with view layer
[blender.git] / source / blender / editors / sculpt_paint / paint_image.c
index 92ab30f7f3d9d7211b5b12601e3fb5cc5704c2b9..5ba753ff6af7fcea6fbfeae3bae849afce89d4ac 100644 (file)
@@ -765,7 +765,7 @@ static PaintOperation *texture_paint_init(bContext *C, wmOperator *op, const flo
 
        /* initialize from context */
        if (CTX_wm_region_view3d(C)) {
-               SceneLayer *sl = CTX_data_scene_layer(C);
+               ViewLayer *sl = CTX_data_view_layer(C);
                Object *ob = OBACT(sl);
                bool uvs, mat, tex, stencil;
                if (!BKE_paint_proj_mesh_data_check(scene, ob, &uvs, &mat, &tex, &stencil)) {