diff options
author | Julian Eisel <julian@blender.org> | 2020-06-10 16:08:23 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-06-10 16:52:10 +0300 |
commit | d62bbf40793234a3cfc3762720f0964f85206169 (patch) | |
tree | 1aa1f7828ec6fcb4df01c484ab45ac78b9a5c624 /source/blender/editors/interface/interface_utils.c | |
parent | 93c8955a722ba3f2022b92a2f8befaadc467756a (diff) |
UI: Show library names grayed out and right-aligned in menus
Should separate the data-block name better from the library name and improve
readability.
Diffstat (limited to 'source/blender/editors/interface/interface_utils.c')
-rw-r--r-- | source/blender/editors/interface/interface_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_utils.c b/source/blender/editors/interface/interface_utils.c index 4013e962ce5..15db947bff6 100644 --- a/source/blender/editors/interface/interface_utils.c +++ b/source/blender/editors/interface/interface_utils.c @@ -441,7 +441,7 @@ void ui_rna_collection_search_update_fn(const struct bContext *C, name = RNA_struct_name_get_alloc(&itemptr, name_buf, sizeof(name_buf), NULL); } else { - BKE_id_full_name_ui_prefix_get(name_buf, itemptr.data); + BKE_id_full_name_ui_prefix_get(name_buf, itemptr.data, UI_SEP_CHAR); BLI_STATIC_ASSERT(sizeof(name_buf) >= MAX_ID_FULL_NAME_UI, "Name string buffer should be big enough to hold full UI ID name"); name = name_buf; @@ -473,7 +473,7 @@ void ui_rna_collection_search_update_fn(const struct bContext *C, /* add search items from temporary list */ for (cis = items_list->first; cis; cis = cis->next) { - if (!UI_search_item_add(items, cis->name, cis->data, cis->iconid, 0)) { + if (!UI_search_item_add(items, cis->name, cis->data, cis->iconid, UI_BUT_HAS_SEP_CHAR)) { break; } } |