diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-04-13 14:14:07 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-04-13 14:14:49 +0300 |
commit | 2f367db2cc638e47aa1c6644082070c290a8532d (patch) | |
tree | 3fde1a1eba0852ee8479a55ab634572939da2008 /source/blender/editors/interface | |
parent | 5b08cbae513ee41bdc4544cd92ac6d6a0e68683f (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/interface')
-rw-r--r-- | source/blender/editors/interface/interface_icons.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c index 225b1b36ac3..4defbed940e 100644 --- a/source/blender/editors/interface/interface_icons.c +++ b/source/blender/editors/interface/interface_icons.c @@ -1428,13 +1428,7 @@ static void icon_set_image(const bContext *C, scene = CTX_data_scene(C); } /* Immediate version */ - ED_preview_icon_render(CTX_data_main(C), - CTX_data_ensure_evaluated_depsgraph(C), - scene, - id, - prv_img->rect[size], - prv_img->w[size], - prv_img->h[size]); + ED_preview_icon_render(C, scene, id, prv_img->rect[size], prv_img->w[size], prv_img->h[size]); } } |