Parcourir la source

[-] Function "GetExtension" always return lowercase string. Using uppercase extension in desc is not needed.

smalcom il y a 7 ans
Parent
commit
e201fcf4f4
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      code/3DSLoader.cpp

+ 2 - 2
code/3DSLoader.cpp

@@ -71,7 +71,7 @@ static const aiImporterDesc desc = {
     0,
     0,
     0,
-    "3ds prj 3DS PRJ"
+	"3ds prj"
 };
 
 
@@ -127,7 +127,7 @@ Discreet3DSImporter::~Discreet3DSImporter() {
 // Returns whether the class can handle the format of the given file.
 bool Discreet3DSImporter::CanRead( const std::string& pFile, IOSystem* pIOHandler, bool checkSig) const {
     std::string extension = GetExtension(pFile);
-    if(extension == "3ds" || extension == "3DS" || extension == "prj"|| extension == "PRJ" ) {
+	if(extension == "3ds" || extension == "prj") {
         return true;
     }