EXT-4902: Assert crash after detaching all and removing all clothes. Turned overzealous assert into a warning.

meow-7.2.2
Brad Payne (Vir Linden) 2010-02-04 15:22:39 -05:00
parent 76cf7ebf70
commit 973e2143d2
1 changed files with 5 additions and 0 deletions

View File

@ -4916,7 +4916,12 @@ void LLWearableBridge::onRemoveFromAvatarArrived(LLWearable* wearable,
}
// Find and remove this item from the COF.
// FIXME 2.1 - call removeCOFItemLinks in llappearancemgr instead.
LLInventoryModel::item_array_t items = gInventory.collectLinkedItems(item_id, LLAppearanceManager::instance().getCOF());
if (items.size() != 1)
{
llwarns << "Found " << items.size() << " COF links to " << item_id.asString() << ", expected 1" << llendl;
}
llassert(items.size() == 1); // Should always have one and only one item linked to this in the COF.
for (LLInventoryModel::item_array_t::const_iterator iter = items.begin();
iter != items.end();