diff options
| author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2026-02-24 19:51:53 +0200 |
|---|---|---|
| committer | Andrey Lihatskiy <118752495+marchcat@users.noreply.github.com> | 2026-02-25 00:38:14 +0200 |
| commit | 6cd2a02c7fbacfd4cf2cf9055e1c282bac3afeb6 (patch) | |
| tree | ea0ae07dc05e6de251cbcf161e76b878aeea72a2 /indra | |
| parent | ce21568c3efa77de987e984b049924b831839c7c (diff) | |
#5449 Fix GLB textures loading regression
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/gltf/llgltfloader.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/gltf/llgltfloader.cpp b/indra/newview/gltf/llgltfloader.cpp index 56583477fb..5a94a2c6c6 100644 --- a/indra/newview/gltf/llgltfloader.cpp +++ b/indra/newview/gltf/llgltfloader.cpp @@ -702,7 +702,12 @@ std::string LLGLTFLoader::processTexture(std::string& full_path_out, S32 texture // Process embedded textures if (image.mBufferView >= 0) { - return extractTextureToTempFile(texture_index, texture_type); + std::string temp_path = extractTextureToTempFile(texture_index, texture_type); + if (!temp_path.empty()) + { + full_path_out = temp_path; + } + return temp_path; } return ""; |
