- internal : RlvForceWear::forceFolder() should check that a wearable can actually be worn before adding it to the wear queue
-> lack of the above check doesn't actually cause issues since LLAppearanceMgr::updateCOF() will still block the wear attempt but it's better with it in place --HG-- branch : RLVameow-7.2.2
parent
77a35d59ea
commit
c851748c41
|
|
@ -360,9 +360,14 @@ void RlvForceWear::forceFolder(const LLViewerInventoryCategory* pFolder, EWearAc
|
|||
case LLAssetType::AT_CLOTHING:
|
||||
if (isWearAction(eAction))
|
||||
{
|
||||
// The check for whether we're replacing a currently worn composite item happens in onWearableArrived()
|
||||
if (!isAddWearable(pItem))
|
||||
addWearable(pRlvItem, f.getWearAction(pRlvItem->getParentUUID()));
|
||||
ERlvWearMask eWearMask = gRlvWearableLocks.canWear(pRlvItem);
|
||||
if ( ((ACTION_WEAR_REPLACE == eCurAction) && (eWearMask & RLV_WEAR_REPLACE)) ||
|
||||
((ACTION_WEAR_ADD == eCurAction) && (eWearMask & RLV_WEAR_ADD)) )
|
||||
{
|
||||
// The check for whether we're replacing a currently worn composite item happens in onWearableArrived()
|
||||
if (!isAddWearable(pItem))
|
||||
addWearable(pRlvItem, eCurAction);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue