diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2013-06-10 16:29:10 -0400 |
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2013-06-10 16:29:10 -0400 |
| commit | 6d46132ef5218cd17d8d201f16e5a7df4b1e39a6 (patch) | |
| tree | 1a9ea4578e12a4eac75ee43b5aa5833dd990137c /indra/llinventory/llinventory.cpp | |
| parent | 89e3959cf393ce9eeb058304264d4f55f4fe9ca2 (diff) | |
SH-4216 WIP - finished item/cat update and reorg of aisv3 code
Diffstat (limited to 'indra/llinventory/llinventory.cpp')
| -rwxr-xr-x | indra/llinventory/llinventory.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/llinventory/llinventory.cpp b/indra/llinventory/llinventory.cpp index 77b837f8ac..6336d02f22 100755 --- a/indra/llinventory/llinventory.cpp +++ b/indra/llinventory/llinventory.cpp @@ -1049,11 +1049,16 @@ void LLInventoryItem::asLLSD( LLSD& sd ) const LLFastTimer::DeclareTimer FTM_INVENTORY_SD_DESERIALIZE("Inventory SD Deserialize"); -bool LLInventoryItem::fromLLSD(const LLSD& sd) +bool LLInventoryItem::fromLLSD(const LLSD& sd, bool is_new) { LLFastTimer _(FTM_INVENTORY_SD_DESERIALIZE); - mInventoryType = LLInventoryType::IT_NONE; - mAssetUUID.setNull(); + if (is_new) + { + // If we're adding LLSD to an existing object, need avoid + // clobbering these fields. + mInventoryType = LLInventoryType::IT_NONE; + mAssetUUID.setNull(); + } std::string w; w = INV_ITEM_ID_LABEL; |
