Bulk of server-baking impelmentation and a bit of cleanup.
This commit is contained in:
@@ -891,6 +891,11 @@ U32 LLInventoryModel::updateItem(const LLViewerInventoryItem* item)
|
||||
{
|
||||
parent_id = findCategoryUUIDForType(LLFolderType::FT_LOST_AND_FOUND);
|
||||
new_item->setParent(parent_id);
|
||||
LLInventoryModel::update_list_t update;
|
||||
LLInventoryModel::LLCategoryUpdate new_folder(parent_id, 1);
|
||||
update.push_back(new_folder);
|
||||
accountForUpdate(update);
|
||||
|
||||
}
|
||||
item_array_t* item_array = get_ptr_in_map(mParentChildItemTree, parent_id);
|
||||
if(item_array)
|
||||
@@ -1425,7 +1430,6 @@ void LLInventoryModel::fetchInventoryResponder::result(const LLSD& content)
|
||||
item_array_t items;
|
||||
update_map_t update;
|
||||
S32 count = content["items"].size();
|
||||
bool all_one_folder = true;
|
||||
LLUUID folder_id;
|
||||
// Does this loop ever execute more than once?
|
||||
for(S32 i = 0; i < count; ++i)
|
||||
@@ -1458,10 +1462,6 @@ void LLInventoryModel::fetchInventoryResponder::result(const LLSD& content)
|
||||
{
|
||||
folder_id = titem->getParentUUID();
|
||||
}
|
||||
else
|
||||
{
|
||||
all_one_folder = false;
|
||||
}
|
||||
}
|
||||
|
||||
U32 changes = 0x0;
|
||||
@@ -1560,6 +1560,10 @@ void LLInventoryModel::addCategory(LLViewerInventoryCategory* category)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// try to localize default names first. See EXT-8319, EXT-7051.
|
||||
//category->localizeName();
|
||||
|
||||
// Insert category uniquely into the map
|
||||
mCategoryMap[category->getUUID()] = category; // LLPointer will deref and delete the old one
|
||||
//mInventory[category->getUUID()] = category;
|
||||
@@ -2638,7 +2642,6 @@ bool LLInventoryModel::messageUpdateCore(LLMessageSystem* msg, bool account)
|
||||
item_array_t items;
|
||||
update_map_t update;
|
||||
S32 count = msg->getNumberOfBlocksFast(_PREHASH_InventoryData);
|
||||
bool all_one_folder = true;
|
||||
LLUUID folder_id;
|
||||
// Does this loop ever execute more than once?
|
||||
for(S32 i = 0; i < count; ++i)
|
||||
@@ -2670,10 +2673,6 @@ bool LLInventoryModel::messageUpdateCore(LLMessageSystem* msg, bool account)
|
||||
{
|
||||
folder_id = titem->getParentUUID();
|
||||
}
|
||||
else
|
||||
{
|
||||
all_one_folder = false;
|
||||
}
|
||||
}
|
||||
if(account)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user