diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-11-13 23:10:30 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-11-13 23:14:14 +0300 |
commit | 42fbb8af8342e916b8f4e8d4591ad49574a88fe4 (patch) | |
tree | 44ebaed3621ff450a7a8d914d1246f8af7aa1401 /source/blender/editors/object/object_edit.c | |
parent | 520f71b43a4b24fb7c59d5798657cb7afb552ecf (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/object/object_edit.c')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index aa148512e16..18f5f7f0207 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -1960,14 +1960,7 @@ static void move_to_collection_menus_free(MoveToCollectionData **menu) static void move_to_collection_menu_create(bContext *UNUSED(C), uiLayout *layout, void *menu_v) { MoveToCollectionData *menu = menu_v; - const char *name; - - if (menu->collection->flag & COLLECTION_IS_MASTER) { - name = IFACE_("Scene Collection"); - } - else { - name = menu->collection->id.name + 2; - } + const char *name = BKE_collection_ui_name_get(menu->collection); uiItemIntO(layout, name, |