SL-16087 [D545] New clothes do not have the word 'New' in their names

master
Andrey Kleshchev 2021-09-27 22:13:40 +03:00
parent f30cc7b5bb
commit e3b869e6f1
1 changed files with 2 additions and 1 deletions

View File

@ -241,7 +241,8 @@ LLViewerWearable* LLWearableList::createNewWearable( LLWearableType::EType type,
LLViewerWearable *wearable = generateNewWearable();
wearable->setType( type, avatarp );
std::string name = LLWearableType::getInstance()->getTypeLabel(wearable->getType());
// LLWearableType has pre-translated getTypeLabel(), but it returns 'name', not 'New Name'.
std::string name = LLTrans::getString( LLWearableType::getInstance()->getTypeDefaultNewName(wearable->getType()) );
wearable->setName( name );
LLPermissions perm;