#4190 provide unsupported extension info in log
parent
3375fb1348
commit
be40d20bca
|
|
@ -495,7 +495,7 @@ bool Asset::prep()
|
|||
if (ExtensionsSupported.find(extension) == ExtensionsSupported.end())
|
||||
{
|
||||
LL_WARNS() << "Unsupported extension: " << extension << LL_ENDL;
|
||||
mUnsupportedExtension = true;
|
||||
mUnsupportedExtensions.push_back(extension);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -396,7 +396,7 @@ namespace LL
|
|||
U32 mMaterialsUBO = 0;
|
||||
bool mLoadIntoVRAM = false;
|
||||
|
||||
bool mUnsupportedExtension = false;
|
||||
std::vector<std::string> mUnsupportedExtensions;
|
||||
|
||||
// prepare for first time use
|
||||
bool prep();
|
||||
|
|
|
|||
|
|
@ -127,10 +127,19 @@ bool LLGLTFLoader::OpenFile(const std::string &filename)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (mGLTFAsset.mUnsupportedExtension)
|
||||
if (mGLTFAsset.mUnsupportedExtensions.size() > 0)
|
||||
{
|
||||
LLSD args;
|
||||
args["Message"] = "UnsupportedExtension";
|
||||
std::string del;
|
||||
std::string ext;
|
||||
for (auto& extension : mGLTFAsset.mUnsupportedExtensions)
|
||||
{
|
||||
ext += del;
|
||||
ext += extension;
|
||||
del = ",";
|
||||
}
|
||||
args["EXT"] = ext;
|
||||
mWarningsArray.append(args);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@
|
|||
<string name="ParsingErrorNoScene">Document has no visual_scene</string>
|
||||
<string name="ParsingErrorPositionInvalidModel">Unable to process mesh without position data. Invalid model.</string>
|
||||
<string name="InvalidGeometryNonTriangulated">Invalid geometry: GLTF files must contain triangulated meshes only.</string>
|
||||
<string name="UnsupportedExtension">Model uses unsupported extension, related material properties are ignored.</string>
|
||||
<string name="UnsupportedExtension">Model uses unsupported extension, related material properties are ignored: [EXT]</string>
|
||||
|
||||
<panel
|
||||
follows="top|left"
|
||||
|
|
|
|||
Loading…
Reference in New Issue