summaryrefslogtreecommitdiff
path: root/indra/newview/gltf/asset.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2025-05-30 03:06:33 +0300
committerGitHub <noreply@github.com>2025-05-30 03:06:33 +0300
commit136149d1a196d2c0c15b9977937e64ccd26c1a49 (patch)
treec531107fe278c9293a6f60a61a3ae91a5297c150 /indra/newview/gltf/asset.cpp
parentbe40d20bca15b97ccba557dc530fe55a92456ebf (diff)
#4191 skip loading model compressed with Draco
Diffstat (limited to 'indra/newview/gltf/asset.cpp')
-rw-r--r--indra/newview/gltf/asset.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/indra/newview/gltf/asset.cpp b/indra/newview/gltf/asset.cpp
index 3859bdc103..8c9f77686a 100644
--- a/indra/newview/gltf/asset.cpp
+++ b/indra/newview/gltf/asset.cpp
@@ -50,6 +50,10 @@ namespace LL
"KHR_texture_transform"
};
+ static std::unordered_set<std::string> ExtensionsIgnored = {
+ "KHR_materials_pbrSpecularGlossiness"
+ };
+
Material::AlphaMode gltf_alpha_mode_to_enum(const std::string& alpha_mode)
{
if (alpha_mode == "OPAQUE")
@@ -494,10 +498,21 @@ bool Asset::prep()
{
if (ExtensionsSupported.find(extension) == ExtensionsSupported.end())
{
- LL_WARNS() << "Unsupported extension: " << extension << LL_ENDL;
- mUnsupportedExtensions.push_back(extension);
+ if (ExtensionsIgnored.find(extension) == ExtensionsIgnored.end())
+ {
+ LL_WARNS() << "Unsupported extension: " << extension << LL_ENDL;
+ mUnsupportedExtensions.push_back(extension);
+ }
+ else
+ {
+ mIgnoredExtensions.push_back(extension);
+ }
}
}
+ if (mUnsupportedExtensions.size() > 0)
+ {
+ return false;
+ }
// do buffers first as other resources depend on them
for (auto& buffer : mBuffers)