From 8795da7c831c61cfa1cb8c14ebcea7cd6c484e23 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Sun, 26 Feb 2023 13:14:06 +0200 Subject: SL-19108 Only permit 64 to 256 px images for thumbnails #2 --- indra/newview/llfloaterchangeitemthumbnail.cpp | 1 + indra/newview/llfloatersimplesnapshot.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/indra/newview/llfloaterchangeitemthumbnail.cpp b/indra/newview/llfloaterchangeitemthumbnail.cpp index cdb09f4c6c..626265fd4b 100644 --- a/indra/newview/llfloaterchangeitemthumbnail.cpp +++ b/indra/newview/llfloaterchangeitemthumbnail.cpp @@ -499,6 +499,7 @@ bool LLFloaterChangeItemThumbnail::validateAsset(const LLUUID &asset_id) { return false; } + return true; } void LLFloaterChangeItemThumbnail::showTexturePicker(const LLUUID &thumbnail_id) diff --git a/indra/newview/llfloatersimplesnapshot.h b/indra/newview/llfloatersimplesnapshot.h index 7fae5be30a..ad25d0ce76 100644 --- a/indra/newview/llfloatersimplesnapshot.h +++ b/indra/newview/llfloatersimplesnapshot.h @@ -67,8 +67,8 @@ public: class Impl; friend class Impl; - static const S32 LLFloaterSimpleSnapshot::THUMBNAIL_SNAPSHOT_DIM_MAX = 256; - static const S32 LLFloaterSimpleSnapshot::THUMBNAIL_SNAPSHOT_DIM_MIN = 64; + static const S32 LLFloaterSimpleSnapshot::THUMBNAIL_SNAPSHOT_DIM_MAX; + static const S32 LLFloaterSimpleSnapshot::THUMBNAIL_SNAPSHOT_DIM_MIN; private: void onSend(); -- cgit v1.2.3