gltf instant ok on valid extension.

pull/1811/head
Marco Di Benedetto 2018-01-18 19:12:51 +01:00
parent 55ca48e838
commit c749594e9d
2 changed files with 4 additions and 4 deletions

View File

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

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 false;
if (extension == "gltf" || extension == "glb")
return true;
if (pIOHandler) {
glTF::Asset asset(pIOHandler);