summaryrefslogtreecommitdiff
path: root/indra/newview/gltf/llgltfloader.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2026-02-24 19:51:53 +0200
committerAndrey Lihatskiy <118752495+marchcat@users.noreply.github.com>2026-02-25 00:38:14 +0200
commit6cd2a02c7fbacfd4cf2cf9055e1c282bac3afeb6 (patch)
treeea0ae07dc05e6de251cbcf161e76b878aeea72a2 /indra/newview/gltf/llgltfloader.cpp
parentce21568c3efa77de987e984b049924b831839c7c (diff)
#5449 Fix GLB textures loading regression
Diffstat (limited to 'indra/newview/gltf/llgltfloader.cpp')
-rw-r--r--indra/newview/gltf/llgltfloader.cpp7
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 "";