Browse Source

Revert change

Kim Kulling 3 years ago
parent
commit
cff213d4dd
1 changed files with 6 additions and 2 deletions
  1. 6 2
      code/AssetLib/C4D/C4DImporter.cpp

+ 6 - 2
code/AssetLib/C4D/C4DImporter.cpp

@@ -118,8 +118,12 @@ C4DImporter::~C4DImporter() {
 
 // ------------------------------------------------------------------------------------------------
 bool C4DImporter::CanRead( const std::string& /*pFile*/, IOSystem* /*pIOHandler*/, bool /*checkSig*/) const {
-    // TODO
-    return false;
+const std::string& extension = GetExtension(pFile);
+    if (extension == "c4d") {
+        return true;
+    } else if ((!extension.length() || checkSig) && pIOHandler)   {
+        // TODO
+    }
 }
 
 // ------------------------------------------------------------------------------------------------