diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2013-06-24 11:27:29 -0400 |
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2013-06-24 11:27:29 -0400 |
| commit | 687b1d3f684e650efa704dac654345bd466620b8 (patch) | |
| tree | f3884f7b2e979e959b3ef6c5f5187b9a853d53a0 /indra/newview/llaisapi.cpp | |
| parent | 1a42b98a8f55662aed448e9bcd5035082140bbcf (diff) | |
| parent | 01ffa6788793cdecff313b704422f0e814452489 (diff) | |
merge
Diffstat (limited to 'indra/newview/llaisapi.cpp')
| -rwxr-xr-x | indra/newview/llaisapi.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/indra/newview/llaisapi.cpp b/indra/newview/llaisapi.cpp index e57bbbb0be..6d5f1951f9 100755 --- a/indra/newview/llaisapi.cpp +++ b/indra/newview/llaisapi.cpp @@ -313,12 +313,7 @@ void AISUpdate::parseUpdate(const LLSD& update) const LLSD& links = embedded["link"]; parseCreatedLinks(links); } - else - { - //LL_DEBUGS("Inventory") << "unhandled embedded field " << field << llendl; - } } - } // Parse item update at the top level. @@ -326,6 +321,12 @@ void AISUpdate::parseUpdate(const LLSD& update) { LLUUID item_id = update["item_id"].asUUID(); LLPointer<LLViewerInventoryItem> new_item(new LLViewerInventoryItem); + LLViewerInventoryItem *curr_item = gInventory.getItem(item_id); + if (curr_item) + { + // Default to current values where not provided. + new_item->copyViewerItem(curr_item); + } BOOL rv = new_item->unpackMessage(update); if (rv) { @@ -469,6 +470,7 @@ void AISUpdate::doUpdate() // cases. Maybe break out the update/create cases, in which // case this is update. LL_DEBUGS("Inventory") << "updated item " << item_id << llendl; + //LL_DEBUGS("Inventory") << ll_pretty_print_sd(new_item->asLLSD()) << llendl; gInventory.updateItem(new_item); } |
