diff options
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, |