summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-01-19 23:40:31 +0200
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-01-20 19:33:39 +0200
commitc2406b5c2eb181c8417cdc0a0f314cdb8b3f35c8 (patch)
tree38df3ff59503fc627343820778ed57f03dbed0c4 /indra
parentce9312e32770f90b3585d7379a37ca955a7e721e (diff)
p#124 Fix wrong max image size for model upload
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewertexture.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp
index 1e83482752..03383f7669 100644
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -1488,7 +1488,9 @@ bool LLViewerFetchedTexture::preCreateTexture(S32 usename/*= 0*/)
// from local images, but this might become unsafe in case of changes to fetcher
if (mBoostLevel == BOOST_PREVIEW)
{
- mRawImage->biasedScaleToPowerOfTwo(1024);
+ // A local file with a preview flag likely means mesh's texture upload
+ // which should follow normal upload scaling rules
+ mRawImage->biasedScaleToPowerOfTwo(LLViewerFetchedTexture::MAX_IMAGE_SIZE_DEFAULT);
}
else
{ // leave black border, do not scale image content