diff options
| -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);  | 
