summaryrefslogtreecommitdiff
path: root/indra/newview/gltf/asset.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-01-19 03:09:18 +0200
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-01-19 23:41:28 +0200
commit16e7570f3e297809efdfc8ab89b688f3f1a43ffa (patch)
tree4ec2630a651ccdf80abb608133fa81b8948ef690 /indra/newview/gltf/asset.cpp
parent757bc838663763d084feeac9925e914d0f2090fe (diff)
#5284 Fix UV flipping
and fix uri based texture upload failing
Diffstat (limited to 'indra/newview/gltf/asset.cpp')
-rw-r--r--indra/newview/gltf/asset.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/gltf/asset.cpp b/indra/newview/gltf/asset.cpp
index 51fb019e93..bb8adf236a 100644
--- a/indra/newview/gltf/asset.cpp
+++ b/indra/newview/gltf/asset.cpp
@@ -1027,6 +1027,12 @@ bool Image::prepImpl(Asset& asset, const LLUUID& id)
std::string dir = gDirUtilp->getDirName(asset.mFilename);
std::string img_file = dir + gDirUtilp->getDirDelimiter() + mUri;
+ if (!gDirUtilp->fileExists(img_file))
+ {
+ // URI might be escaped, unescape.
+ img_file = dir + gDirUtilp->getDirDelimiter() + LLURI::unescape(mUri);
+ }
+
LLUUID tracking_id = LLLocalBitmapMgr::getInstance()->addUnit(img_file);
if (tracking_id.notNull() && mLoadIntoTexturePipe)
{