Fix static init ordering issue in 3mf importer

pull/2236/head
rdb 2018-11-23 20:04:16 +01:00 committed by GitHub
parent d98f8bbf7b
commit e595410de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -419,8 +419,6 @@ private:
} //namespace D3MF
static const std::string Extension = "3mf";
static const aiImporterDesc desc = {
"3mf Importer",
"",
@ -431,7 +429,7 @@ static const aiImporterDesc desc = {
0,
0,
0,
Extension.c_str()
"3mf"
};
D3MFImporter::D3MFImporter()
@ -445,7 +443,7 @@ D3MFImporter::~D3MFImporter() {
bool D3MFImporter::CanRead(const std::string &filename, IOSystem *pIOHandler, bool checkSig) const {
const std::string extension( GetExtension( filename ) );
if(extension == Extension ) {
if(extension == "3mf" ) {
return true;
} else if ( !extension.length() || checkSig ) {
if ( nullptr == pIOHandler ) {