From 6cd2a02c7fbacfd4cf2cf9055e1c282bac3afeb6 Mon Sep 17 00:00:00 2001 From: Andrey Lihatskiy Date: Tue, 24 Feb 2026 19:51:53 +0200 Subject: #5449 Fix GLB textures loading regression --- indra/newview/gltf/llgltfloader.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'indra/newview') 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 ""; -- cgit v1.3