diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-11-10 18:18:31 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-11-10 18:18:51 +0200 |
commit | 46ebe69f328f4f734b01d1cd8bec8da6008078fe (patch) | |
tree | d3bee80d352b471a67cfbad8eb0b4dc98f290f84 /indra/newview/llwearablelist.cpp | |
parent | 79ec8a8be4ebf143dfb2487ded13e0498982e6b8 (diff) |
SL-14303 Fix LLWearableType to not spam in logs
Diffstat (limited to 'indra/newview/llwearablelist.cpp')
-rw-r--r-- | indra/newview/llwearablelist.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llwearablelist.cpp b/indra/newview/llwearablelist.cpp index b61fbbd073..b07905629a 100644 --- a/indra/newview/llwearablelist.cpp +++ b/indra/newview/llwearablelist.cpp @@ -241,7 +241,8 @@ LLViewerWearable* LLWearableList::createNewWearable( LLWearableType::EType type, LLViewerWearable *wearable = generateNewWearable(); wearable->setType( type, avatarp ); - std::string name = LLTrans::getString( LLWearableType::getTypeDefaultNewName(wearable->getType()) ); + // LLWearableType has pre-translated getTypeLabel(), but it uses default translation + std::string name = LLTrans::getString( LLWearableType::getInstance()->getTypeDefaultNewName(wearable->getType()) ); wearable->setName( name ); LLPermissions perm; |