summaryrefslogtreecommitdiff
path: root/indra/newview/llmodelpreview.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2023-03-10 10:53:00 -0600
committerDave Parks <davep@lindenlab.com>2023-03-10 10:53:00 -0600
commit2db036ba1758d36c28b9a7e5c32f732787ff8c44 (patch)
treeda61209a679b689cde3bc3f86f325ad7a200a055 /indra/newview/llmodelpreview.cpp
parent25ede8638209fac8dde5b71bece4bc1dfa30ea16 (diff)
parent97b5f07edd077e9b451e874275e9ce49c134f841 (diff)
Merge branch 'DRTVWR-559' of github.com:secondlife/viewer into DRTVWR-559
Diffstat (limited to 'indra/newview/llmodelpreview.cpp')
-rw-r--r--indra/newview/llmodelpreview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp
index 56a48cb74d..7ae48eef8c 100644
--- a/indra/newview/llmodelpreview.cpp
+++ b/indra/newview/llmodelpreview.cpp
@@ -750,7 +750,9 @@ void LLModelPreview::loadModel(std::string filename, S32 lod, bool force_disable
// three possible file extensions, .dae .gltf .glb
// check for .dae and if not then assume one of the .gl??
- if (std::string::npos != filename.rfind(".dae"))
+ std::string filename_lc(filename);
+ LLStringUtil::toLower(filename_lc);
+ if (std::string::npos != filename_lc.rfind(".dae"))
{
mModelLoader = new LLDAELoader(
filename,