Fix 'Wear' action if a wearable of that asset id is already worn; option should now be disabled if there's already a worn wearable with a matching assetid that would NOT be replaced by said 'Wear' action. (It should work otherwise).

This commit is contained in:
Shyotl
2015-07-12 02:35:14 -05:00
parent 4cce1f73c8
commit 18ac6dcb60
4 changed files with 61 additions and 26 deletions

View File

@@ -88,7 +88,10 @@ void LLWearableData::setWearable(const LLWearableType::EType type, U32 index, LL
else
{
wearable_vec[index] = wearable;
old_wearable->setUpdated();
if (old_wearable != wearable) //Avoid redundant update
{
old_wearable->setUpdated();
}
const BOOL removed = FALSE;
wearableUpdated(wearable, removed);
}