Skip to content
Snippets Groups Projects
Commit 3cca342f authored by Brad Payne (Vir Linden)'s avatar Brad Payne (Vir Linden)
Browse files

SH-1790 FIX - use the inventory flags returned by server when available

parent 021ce5cc
No related branches found
No related tags found
No related merge requests found
...@@ -127,6 +127,15 @@ void on_new_single_inventory_upload_complete( ...@@ -127,6 +127,15 @@ void on_new_single_inventory_upload_complete(
group_perms, group_perms,
next_owner_perms); next_owner_perms);
U32 inventory_item_flags = 0;
if (server_response.has("inventory_flags"))
{
inventory_item_flags = (U32) server_response["inventory_flags"].asInteger();
if (inventory_item_flags != 0)
{
llinfos << "inventory_item_flags " << inventory_item_flags << llendl;
}
}
S32 creation_date_now = time_corrected(); S32 creation_date_now = time_corrected();
LLPointer<LLViewerInventoryItem> item = new LLViewerInventoryItem( LLPointer<LLViewerInventoryItem> item = new LLViewerInventoryItem(
server_response["new_inventory_item"].asUUID(), server_response["new_inventory_item"].asUUID(),
...@@ -138,7 +147,7 @@ void on_new_single_inventory_upload_complete( ...@@ -138,7 +147,7 @@ void on_new_single_inventory_upload_complete(
item_name, item_name,
item_description, item_description,
LLSaleInfo::DEFAULT, LLSaleInfo::DEFAULT,
LLInventoryItemFlags::II_FLAGS_NONE, inventory_item_flags,
creation_date_now); creation_date_now);
gInventory.updateItem(item); gInventory.updateItem(item);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment