From 4b5b048cb6280cbd9fd303acd96fce73461d1fb4 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev <andreykproductengine@lindenlab.com> Date: Tue, 22 Aug 2023 21:14:06 +0300 Subject: SL-20187 [AIS3] Don't fill thumbnail field if null thumbnail is set --- indra/llinventory/llinventory.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'indra/llinventory') diff --git a/indra/llinventory/llinventory.cpp b/indra/llinventory/llinventory.cpp index f0b593bba7..13a496b4d7 100644 --- a/indra/llinventory/llinventory.cpp +++ b/indra/llinventory/llinventory.cpp @@ -1140,7 +1140,14 @@ LLSD LLInventoryCategory::asAISLLSD() const S8 type = static_cast<S8>(mPreferredType); sd[INV_ASSET_TYPE_LABEL_WS] = type; sd[INV_NAME_LABEL] = mName; - sd[INV_THUMBNAIL_LABEL] = LLSD().with(INV_ASSET_ID_LABEL, mThumbnailUUID); + if (mThumbnailUUID.notNull()) + { + sd[INV_THUMBNAIL_LABEL] = LLSD().with(INV_ASSET_ID_LABEL, mThumbnailUUID); + } + else + { + sd[INV_THUMBNAIL_LABEL] = LLSD(); + } return sd; } -- cgit v1.2.3