diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-06-27 00:26:32 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-06-27 00:29:34 +0300 |
commit | 04fc8c4db45175cbe036474c53eacdd3b9f56eaa (patch) | |
tree | 07267baa0844143828eaa03269da0740f58f4eb2 /indra/llinventory | |
parent | 7849e12c3104771a96806e8e721e3d5d92f856d2 (diff) |
SL-18629 Fixed missed case of unpacking metadata
Diffstat (limited to 'indra/llinventory')
-rw-r--r-- | indra/llinventory/llinventory.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/indra/llinventory/llinventory.cpp b/indra/llinventory/llinventory.cpp index ecd070236f..f0b593bba7 100644 --- a/indra/llinventory/llinventory.cpp +++ b/indra/llinventory/llinventory.cpp @@ -215,6 +215,26 @@ BOOL LLInventoryObject::importLegacyStream(std::istream& input_stream) { mType = LLAssetType::lookup(valuestr); } + else if (0 == strcmp("metadata", keyword)) + { + LLSD metadata(valuestr); + if (metadata.has("thumbnail")) + { + const LLSD& thumbnail = metadata["thumbnail"]; + if (thumbnail.has("asset_id")) + { + setThumbnailUUID(thumbnail["asset_id"].asUUID()); + } + else + { + setThumbnailUUID(LLUUID::null); + } + } + else + { + setThumbnailUUID(LLUUID::null); + } + } else if(0 == strcmp("name", keyword)) { //strcpy(valuestr, buffer + strlen(keyword) + 3); |