Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-04-13 14:14:07 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-04-13 14:14:49 +0300
commit2f367db2cc638e47aa1c6644082070c290a8532d (patch)
tree3fde1a1eba0852ee8479a55ab634572939da2008 /source/blender/editors/include/ED_render.h
parent5b08cbae513ee41bdc4544cd92ac6d6a0e68683f (diff)
Cleanup: preview rendering, push bContext a bit further down the call stack
Pass `bContext *C` a bit further down the call stack, to prevent exploding the number of parameters of `ED_preview_icon_render()`. An upcoming change will require access to yet another context member, and this can now be done without adding yet another parameter. No functional changes.
Diffstat (limited to 'source/blender/editors/include/ED_render.h')
-rw-r--r--source/blender/editors/include/ED_render.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/include/ED_render.h b/source/blender/editors/include/ED_render.h
index ed35b9138f3..0fb06639dbf 100644
--- a/source/blender/editors/include/ED_render.h
+++ b/source/blender/editors/include/ED_render.h
@@ -91,8 +91,7 @@ void ED_preview_shader_job(const struct bContext *C,
int sizex,
int sizey,
int method);
-void ED_preview_icon_render(struct Main *bmain,
- struct Depsgraph *depsgraph,
+void ED_preview_icon_render(const struct bContext *C,
struct Scene *scene,
struct ID *id,
unsigned int *rect,