Skip to content
Snippets Groups Projects
Commit 04fc8c4d authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-18629 Fixed missed case of unpacking metadata

parent 7849e12c
No related branches found
No related tags found
No related merge requests found
...@@ -215,6 +215,26 @@ BOOL LLInventoryObject::importLegacyStream(std::istream& input_stream) ...@@ -215,6 +215,26 @@ BOOL LLInventoryObject::importLegacyStream(std::istream& input_stream)
{ {
mType = LLAssetType::lookup(valuestr); 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)) else if(0 == strcmp("name", keyword))
{ {
//strcpy(valuestr, buffer + strlen(keyword) + 3); //strcpy(valuestr, buffer + strlen(keyword) + 3);
......
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