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:
authorBastien Montagne <montagne29@wanadoo.fr>2018-10-31 14:18:36 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-10-31 15:34:06 +0300
commit08a92d8578ea57109406022f75bc7b123e9cbcbb (patch)
tree9e80c392c4cd726ed1b929888fafa1b2c66c40bc /source/blender/editors/interface/interface_utils.c
parent7fe1ecf89dae2df2b0474df44defb806b4fa00c3 (diff)
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.
Diffstat (limited to 'source/blender/editors/interface/interface_utils.c')
-rw-r--r--source/blender/editors/interface/interface_utils.c4
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 4a051b9a4e8..d74bfe93f2f 100644
--- a/source/blender/editors/interface/interface_utils.c
+++ b/source/blender/editors/interface/interface_utils.c
@@ -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 {