restored gltf checks.

This commit is contained in:
Marco Di Benedetto
2018-01-18 22:28:44 +01:00
parent c749594e9d
commit 5f38bd01ec
2 changed files with 4 additions and 4 deletions

View File

@@ -102,8 +102,8 @@ bool glTFImporter::CanRead(const std::string& pFile, IOSystem* pIOHandler, bool
{
const std::string &extension = GetExtension(pFile);
if (extension == "gltf" || extension == "glb")
return true;
if (extension != "gltf" && extension != "glb")
return false;
if (pIOHandler) {
glTF::Asset asset(pIOHandler);