From 29c5bf19f706655605bd3588e0249dbd5fd52179 Mon Sep 17 00:00:00 2001 From: Maxim Nikolenko Date: Fri, 31 Mar 2023 21:18:50 +0300 Subject: SL-19379 WIP show fallback image with original size --- indra/newview/llthumbnailctrl.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'indra/newview/llthumbnailctrl.cpp') diff --git a/indra/newview/llthumbnailctrl.cpp b/indra/newview/llthumbnailctrl.cpp index 1b054b4c27..340dba3717 100644 --- a/indra/newview/llthumbnailctrl.cpp +++ b/indra/newview/llthumbnailctrl.cpp @@ -170,6 +170,13 @@ void LLThumbnailCtrl::draw() LLUICtrl::draw(); } +void LLThumbnailCtrl::clearTexture() +{ + mImageAssetID = LLUUID::null; + mTexturep = nullptr; + mImagep = nullptr; +} + // virtual // value might be a string or a UUID void LLThumbnailCtrl::setValue(const LLSD& value) -- cgit v1.2.3