Merge in select parts of https://bitbucket.org/Kitty_Barnett/rlva-development @ 1adfc2cd210c4cf3a8800b31915d363bfe47d045
This commit is contained in:
@@ -43,9 +43,15 @@
|
||||
std::string rlvGetItemName(const LLViewerInventoryItem* pItem)
|
||||
{
|
||||
if ( (pItem) && ((LLAssetType::AT_BODYPART == pItem->getType()) || (LLAssetType::AT_CLOTHING == pItem->getType())) )
|
||||
{
|
||||
return llformat("%s (%s)", pItem->getName().c_str(), LLWearableType::getTypeName(pItem->getWearableType()).c_str());
|
||||
}
|
||||
else if ( (pItem) && (LLAssetType::AT_OBJECT == pItem->getType()) && (isAgentAvatarValid()) )
|
||||
return llformat("%s (%s)", pItem->getName().c_str(), gAgentAvatarp->getAttachedPointName(pItem->getUUID()).c_str());
|
||||
{
|
||||
std::string strAttachPtName;
|
||||
gAgentAvatarp->getAttachedPointName(pItem->getUUID(), strAttachPtName);
|
||||
return llformat("%s (%s)", pItem->getName().c_str(), strAttachPtName.c_str());
|
||||
}
|
||||
return (pItem) ? pItem->getName() : LLStringUtil::null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user