diff options
author | Julian Eisel <julian@blender.org> | 2021-01-02 17:29:01 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-01-02 17:36:51 +0300 |
commit | 0330b0552b90e647df3ea1f2094f4517df26250d (patch) | |
tree | 5c21e8fc0a66510510fdc740d265cf4f07f4f1c8 /source/blender/windowmanager/intern/wm_operators.c | |
parent | 057a8afb879c58fa40b10a2ab55debded82d19bb (diff) |
Cleanup: Explicitly pass icon size to generation function, not just bool
* This way you don't have to look up the function declaration to know what the
boolean value means.
* You can call the function in a loop over the available sizes and pass the
index as size.
* Makes it easier to add a new size in future if needed.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operators.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 4d80cf7749c..5a64b42a653 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -3314,8 +3314,8 @@ static void previews_id_ensure(bContext *C, Scene *scene, ID *id) /* Only preview non-library datablocks, lib ones do not pertain to this .blend file! * Same goes for ID with no user. */ if (!ID_IS_LINKED(id) && (id->us != 0)) { - UI_icon_render_id(C, scene, id, false, false); - UI_icon_render_id(C, scene, id, true, false); + UI_icon_render_id(C, scene, id, ICON_SIZE_ICON, false); + UI_icon_render_id(C, scene, id, ICON_SIZE_PREVIEW, false); } } |