[RLVa] Miscellaneous other touches to rlva code

This commit is contained in:
Inusaito Sayori
2014-01-28 04:38:05 -05:00
parent dd35f1bd68
commit 1b32c79a5e
5 changed files with 58 additions and 42 deletions

View File

@@ -787,3 +787,19 @@ bool RlvWearableItemCollector::operator()(LLInventoryCategory* pFolder, LLInvent
}
// ============================================================================
// General purpose inventory helper classes
//
// Checked: 2013-10-12 (RLVa-1.4.9)
bool RlvFindAttachmentsOnPoint::operator()(LLInventoryCategory* pFolder, LLInventoryItem* pItem)
{
#ifndef RLV_DEPRECATE_ATTACHPTNAMING
// First check if the item is attached to the attachment point; fall back to the item name otherwise
return (pItem) && (LLAssetType::AT_OBJECT == pItem->getType()) &&
( ((m_pAttachPt) && (m_pAttachPt->getAttachedObject(pItem->getLinkedUUID()))) || (RlvAttachPtLookup::getAttachPoint(pItem) == m_pAttachPt) );
#else
return (pItem) && (LLAssetType::AT_OBJECT == pItem->getType()) && (m_pAttachPt) && (m_pAttachPt->getAttachedObject(pItem->getLinkedUUID()));
#endif // RLV_DEPRECATE_LEGACY_ATTACHPT
}
// ============================================================================