Workspace: Move engines to workspace and Properties Editor cleanup
[blender.git] / source / blender / editors / sculpt_paint / paint_image_proj.c
index 2ffd9757f924114284ef4b604d6d69b92b51d843..a8271287e10fbbf40d6ab65c1484d998892c8e5b 100644 (file)
@@ -5455,7 +5455,7 @@ static int texture_paint_image_from_view_exec(bContext *C, wmOperator *op)
        char filename[FILE_MAX];
 
        Scene *scene = CTX_data_scene(C);
-       SceneLayer *sl = CTX_data_scene_layer(C);
+       SceneLayer *scene_layer = CTX_data_scene_layer(C);
        EvaluationContext eval_ctx;
        ToolSettings *settings = scene->toolsettings;
        int w = settings->imapaint.screen_grab_size[0];
@@ -5473,7 +5473,7 @@ static int texture_paint_image_from_view_exec(bContext *C, wmOperator *op)
        if (h > maxsize) h = maxsize;
 
        ibuf = ED_view3d_draw_offscreen_imbuf(
-               &eval_ctx, scene, sl, CTX_wm_view3d(C), CTX_wm_region(C),
+               &eval_ctx, scene, scene_layer, CTX_wm_view3d(C), CTX_wm_region(C),
                w, h, IB_rect, false, R_ALPHAPREMUL, 0, false, NULL,
                NULL, NULL, err_out);
        if (!ibuf) {