Răsfoiți Sursa

NFF: reenable canRead

Kim Kulling 3 ani în urmă
părinte
comite
ffc13f18ba
1 a modificat fișierele cu 2 adăugiri și 4 ștergeri
  1. 2 4
      code/AssetLib/NFF/NFFLoader.cpp

+ 2 - 4
code/AssetLib/NFF/NFFLoader.cpp

@@ -5,8 +5,6 @@ Open Asset Import Library (assimp)
 
 Copyright (c) 2006-2022, assimp team
 
-
-
 All rights reserved.
 
 Redistribution and use of this software in source and binary forms,
@@ -83,8 +81,8 @@ NFFImporter::~NFFImporter() {}
 
 // ------------------------------------------------------------------------------------------------
 // Returns whether the class can handle the format of the given file.
-bool NFFImporter::CanRead(const std::string & /*pFile*/, IOSystem * /*pIOHandler*/, bool /*checkSig*/) const {
-    return false;
+bool NFFImporter::CanRead(const std::string & pFile, IOSystem * /*pIOHandler*/, bool /*checkSig*/) const {
+    return SimpleExtensionCheck(pFile, "nff", "enff");
 }
 
 // ------------------------------------------------------------------------------------------------