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:
authorCampbell Barton <ideasman42@gmail.com>2020-09-18 03:24:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-09-18 03:24:14 +0300
commit1dda60792cc303ec81785d6a79926eed9a4da3d3 (patch)
treedde8200f426561b524a3e8526d6570aff879b1bb /source/blender/windowmanager/intern
parentcacd57b67a15e08bce3b1c9a136004516c593672 (diff)
Cleanup: use 'UI_icon_*' prefix for icons API
- UI_collection_color_icon_get -> UI_icon_color_from_collection - UI_idcode_icon_get -> UI_icon_from_idcode - UI_library_icon_get -> UI_icon_from_library - UI_mode_icon_get -> UI_icon_from_object_mode - UI_rnaptr_icon_get -> UI_icon_from_rnaptr - UI_alert_image -> UI_icon_alert_imbuf_get - UI_preview_render_size -> UI_icon_preview_to_render_size - UI_id_icon_render -> UI_icon_render_id
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 0f3409af3d3..2b01c8fe90e 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -3347,8 +3347,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_id_icon_render(C, scene, id, false, false);
- UI_id_icon_render(C, scene, id, true, false);
+ UI_icon_render_id(C, scene, id, false, false);
+ UI_icon_render_id(C, scene, id, true, false);
}
}
@@ -3994,7 +3994,7 @@ static const EnumPropertyItem *rna_id_itemf(bContext *UNUSED(C),
/* Show collection color tag icons in menus. */
if (GS(id->name) == ID_GR) {
- item_tmp.icon = UI_collection_color_icon_get((Collection *)id);
+ item_tmp.icon = UI_icon_color_from_collection((Collection *)id);
}
RNA_enum_item_add(&item, &totitem, &item_tmp);