glTF: Always check signature

Always check signature for glTF 1.0 and glTF 2.0 files to select the correct importer. Fixes #1605
This commit is contained in:
Axel Wefers
2018-01-09 09:37:57 -08:00
parent 89a62edb9a
commit 901b981260
2 changed files with 4 additions and 4 deletions

View File

@@ -99,14 +99,14 @@ const aiImporterDesc* glTF2Importer::GetInfo() const
return &desc;
}
bool glTF2Importer::CanRead(const std::string& pFile, IOSystem* pIOHandler, bool checkSig) const
bool glTF2Importer::CanRead(const std::string& pFile, IOSystem* pIOHandler, bool /* checkSig */) const
{
const std::string &extension = GetExtension(pFile);
if (extension != "gltf" && extension != "glb")
return false;
if (checkSig && pIOHandler) {
if (pIOHandler) {
glTF2::Asset asset(pIOHandler);
try {
asset.Load(pFile, extension == "glb");