From f166fa67b75fa58a7013c7ee48ca19f5eedfbcf0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 20 Nov 2020 12:10:50 +1100 Subject: [PATCH] Cleanup: rename do_sky argument to draw_background This was leftover from Blender internal, follow the naming already used by the draw manager. --- source/blender/editors/include/ED_view3d_offscreen.h | 4 ++-- source/blender/editors/space_view3d/view3d_draw.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/blender/editors/include/ED_view3d_offscreen.h b/source/blender/editors/include/ED_view3d_offscreen.h index 69756f1cd79..e854982c796 100644 --- a/source/blender/editors/include/ED_view3d_offscreen.h +++ b/source/blender/editors/include/ED_view3d_offscreen.h @@ -51,7 +51,7 @@ void ED_view3d_draw_offscreen(struct Depsgraph *depsgraph, const float viewmat[4][4], const float winmat[4][4], bool is_image_render, - bool do_sky, + bool draw_background, const char *viewname, const bool do_color_management, struct GPUOffScreen *ofs, @@ -68,7 +68,7 @@ void ED_view3d_draw_offscreen_simple(struct Depsgraph *depsgraph, float clip_start, float clip_end, bool is_image_render, - bool do_sky, + bool draw_background, const char *viewname, const bool do_color_management, struct GPUOffScreen *ofs, diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 56c127e986f..454cb50eeaf 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -1666,7 +1666,7 @@ void ED_view3d_draw_offscreen(Depsgraph *depsgraph, const float viewmat[4][4], const float winmat[4][4], bool is_image_render, - bool do_sky, + bool draw_background, const char *viewname, const bool do_color_management, GPUOffScreen *ofs, @@ -1724,7 +1724,7 @@ void ED_view3d_draw_offscreen(Depsgraph *depsgraph, region, v3d, is_image_render, - do_sky, + draw_background, do_color_management, ofs, viewport); @@ -1759,7 +1759,7 @@ void ED_view3d_draw_offscreen_simple(Depsgraph *depsgraph, float clip_start, float clip_end, bool is_image_render, - bool do_sky, + bool draw_background, const char *viewname, const bool do_color_management, GPUOffScreen *ofs, @@ -1822,7 +1822,7 @@ void ED_view3d_draw_offscreen_simple(Depsgraph *depsgraph, viewmat, winmat, is_image_render, - do_sky, + draw_background, viewname, do_color_management, ofs,