diff --git a/code/glTF2Importer.cpp b/code/glTF2Importer.cpp
index 92328ec2d..8136af2dc 100644
--- a/code/glTF2Importer.cpp
+++ b/code/glTF2Importer.cpp
@@ -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);
diff --git a/code/glTFImporter.cpp b/code/glTFImporter.cpp
index b4d69e32f..4df9e1763 100644
--- a/code/glTFImporter.cpp
+++ b/code/glTFImporter.cpp
@@ -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);