p#124 Fix wrong max image size for model upload

This commit is contained in:
Andrey Kleshchev
2026-01-20 19:33:39 +02:00
parent ce9312e327
commit c2406b5c2e
+3 -1
View File
@@ -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