UI/Unique ID name: add library ID name if present.

Also reshuffle a bit that whole code, did some renaming,
`BKE_id_to_unique_string_key()` is now using same base code (instead of
using whole library filepath...), etc.
This commit is contained in:
2018-10-31 12:18:36 +01:00
parent 7fe1ecf89d
commit 08a92d8578
5 changed files with 51 additions and 27 deletions

View File

@@ -273,8 +273,8 @@ void ui_rna_collection_search_cb(const struct bContext *C, void *arg, const char
iconid = 0;
if (itemptr.type && RNA_struct_is_ID(itemptr.type)) {
name = MEM_malloc_arrayN(MAX_ID_NAME + 1, sizeof(*name), __func__);
BKE_id_ui_prefix(name, itemptr.data);
name = MEM_malloc_arrayN(MAX_ID_FULL_NAME, sizeof(*name), __func__);
BKE_id_full_name_ui_prefix_get(name, itemptr.data);
iconid = ui_id_icon_get(C, itemptr.data, false);
}
else {