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

pull/1981/head
smalcom 2018-05-24 12:25:27 +03:00
parent 348b34a2de
commit e201fcf4f4
1 changed files with 2 additions and 2 deletions

View File

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