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:
authorDalai Felinto <dfelinto@gmail.com>2018-11-13 23:10:30 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-11-13 23:14:14 +0300
commit42fbb8af8342e916b8f4e8d4591ad49574a88fe4 (patch)
tree44ebaed3621ff450a7a8d914d1246f8af7aa1401 /source/blender/editors/space_outliner
parent520f71b43a4b24fb7c59d5798657cb7afb552ecf (diff)
Util to get collection UI name
Note we still have hardcoded IFACE_("Scene Collection") in the outliner. I'm ok with getting of them as well, though no strong feelings here.
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r--source/blender/editors/space_outliner/outliner_tree.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c
index 74510c3b02f..86d909220e2 100644
--- a/source/blender/editors/space_outliner/outliner_tree.c
+++ b/source/blender/editors/space_outliner/outliner_tree.c
@@ -1345,13 +1345,7 @@ static void outliner_add_view_layer(SpaceOops *soops, ListBase *tree, TreeElemen
BLI_INLINE void outliner_add_collection_init(TreeElement *te, Collection *collection)
{
- if (collection->flag & COLLECTION_IS_MASTER) {
- te->name = IFACE_("Scene Collection");
- }
- else {
- te->name = collection->id.name + 2;
- }
-
+ te->name = BKE_collection_ui_name_get(collection);
te->directdata = collection;
}