浏览代码

Update D3MFImporter.cpp

Avoid using extension twice.
Kim Kulling 6 年之前
父节点
当前提交
23af5336d5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/D3MFImporter.cpp

+ 1 - 1
code/D3MFImporter.cpp

@@ -443,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 == "3mf" ) {
+    if(extension == desc.mFileExtensions ) {
         return true;
     } else if ( !extension.length() || checkSig ) {
         if ( nullptr == pIOHandler ) {