SL-19503 Deleting a thumbnail for folder does not remove thumbnail in viewer
parent
c9a025e3d0
commit
e7a1ac5db8
|
|
@ -1120,11 +1120,7 @@ LLSD LLInventoryCategory::asAISLLSD() const
|
|||
S8 type = static_cast<S8>(mPreferredType);
|
||||
sd[INV_ASSET_TYPE_LABEL_WS] = type;
|
||||
sd[INV_NAME_LABEL] = mName;
|
||||
|
||||
if (mThumbnailUUID.notNull())
|
||||
{
|
||||
sd[INV_THUMBNAIL_LABEL] = LLSD().with(INV_ASSET_ID_LABEL, mThumbnailUUID);
|
||||
}
|
||||
sd[INV_THUMBNAIL_LABEL] = LLSD().with(INV_ASSET_ID_LABEL, mThumbnailUUID);
|
||||
|
||||
return sd;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1377,11 +1377,8 @@ void update_inventory_category(
|
|||
return;
|
||||
}
|
||||
|
||||
LLPointer<LLViewerInventoryCategory> new_cat = new LLViewerInventoryCategory(obj);
|
||||
new_cat->fromLLSD(updates);
|
||||
LLSD new_llsd = new_cat->asLLSD();
|
||||
AISAPI::completion_t cr = boost::bind(&doInventoryCb, cb, _1);
|
||||
AISAPI::UpdateCategory(cat_id, new_llsd, cr);
|
||||
AISAPI::UpdateCategory(cat_id, updates, cr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue