diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-07-22 01:54:33 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-07-22 19:16:26 +0300 |
commit | d84897967e836cd2dadf8f609eb98946f500d5b1 (patch) | |
tree | f5371065be3e40be6fa1457d670e85b9ff52d88f /indra/newview/gltf | |
parent | 8df303ed8506a0c4fe8965130e1ac9df75d156b1 (diff) |
#4318 Warn or log when texture gets scaled down
for material and model upload
Diffstat (limited to 'indra/newview/gltf')
-rw-r--r-- | indra/newview/gltf/llgltfloader.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/gltf/llgltfloader.cpp b/indra/newview/gltf/llgltfloader.cpp index 3019a12446..9f6caf4198 100644 --- a/indra/newview/gltf/llgltfloader.cpp +++ b/indra/newview/gltf/llgltfloader.cpp @@ -611,6 +611,7 @@ LLGLTFLoader::LLGLTFImportMaterial LLGLTFLoader::processMaterial(S32 material_in LL::GLTF::Image& image = mGLTFAsset.mImages[sourceIndex]; if (image.mTexture.notNull()) { + mTexturesNeedScaling |= image.mHeight > LLViewerTexture::MAX_IMAGE_SIZE_DEFAULT || image.mWidth > LLViewerTexture::MAX_IMAGE_SIZE_DEFAULT; impMat.setDiffuseMap(image.mTexture->getID()); LL_INFOS("GLTF_IMPORT") << "Using existing texture ID: " << image.mTexture->getID().asString() << LL_ENDL; } |