diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-06-30 20:38:40 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-06-30 20:38:40 +0300 |
commit | f17eab60a395cb3caa18edc1e9619b695eb831d4 (patch) | |
tree | 947ebfab92399ba3efbf31cf637f0273552f4841 | |
parent | 3b92c1c6411ee06330c6071d2c4de16351ced575 (diff) |
SL-15488 FIXED Files ending in .DAE handle differently than files ending in .dae
-rw-r--r-- | indra/newview/llmodelpreview.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp index a9e80ab5da..767c3b30ec 100644 --- a/indra/newview/llmodelpreview.cpp +++ b/indra/newview/llmodelpreview.cpp @@ -2616,7 +2616,9 @@ void LLModelPreview::lookupLODModelFiles(S32 lod) std::string lod_filename = mLODFile[LLModel::LOD_HIGH]; std::string ext = ".dae"; - std::string::size_type i = lod_filename.rfind(ext); + std::string lod_filename_lower(lod_filename); + LLStringUtil::toLower(lod_filename_lower); + std::string::size_type i = lod_filename_lower.rfind(ext); if (i != std::string::npos) { lod_filename.replace(i, lod_filename.size() - ext.size(), getLodSuffix(next_lod) + ext); |