From 1cf4a2c95210ba94c330710e0a98f762bf54c605 Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Thu, 27 Jul 2023 13:30:09 +0300 Subject: SL-20080 Show warning message when selecting a non square texture for thumbnails --- indra/newview/lltexturectrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indra/newview') diff --git a/indra/newview/lltexturectrl.cpp b/indra/newview/lltexturectrl.cpp index 29891ba235..a746744e53 100644 --- a/indra/newview/lltexturectrl.cpp +++ b/indra/newview/lltexturectrl.cpp @@ -282,7 +282,8 @@ bool LLFloaterTexturePicker::updateImageStats() S32 height = mTexturep->getFullHeight(); if (width > 0 && height > 0) { - if (width < mMinDim + if (width != height + || width < mMinDim || width > mMaxDim || height < mMinDim || height > mMaxDim -- cgit v1.2.3