瀏覽代碼

Importer: when the right importer was found log this info.

Kim Kulling 9 年之前
父節點
當前提交
3079b90622
共有 2 個文件被更改,包括 7 次插入2 次删除
  1. 1 1
      code/FBXImporter.cpp
  2. 6 1
      code/Importer.cpp

+ 1 - 1
code/FBXImporter.cpp

@@ -12,7 +12,7 @@ following conditions are met:
 * Redistributions of source code must retain the above
 * Redistributions of source code must retain the above
   copyright notice, this list of conditions and the
   copyright notice, this list of conditions and the
   following disclaimer.
   following disclaimer.
-
+r
 * Redistributions in binary form must reproduce the above
 * Redistributions in binary form must reproduce the above
   copyright notice, this list of conditions and the
   copyright notice, this list of conditions and the
   following disclaimer in the documentation and/or other
   following disclaimer in the documentation and/or other

+ 6 - 1
code/Importer.cpp

@@ -658,7 +658,12 @@ const aiScene* Importer::ReadFile( const char* _pFile, unsigned int pFlags)
         }
         }
 
 
         // Dispatch the reading to the worker class for this format
         // Dispatch the reading to the worker class for this format
-        DefaultLogger::get()->info("Found a matching importer for this file format");
+        const aiImporterDesc *desc( imp->GetInfo() );
+        std::string ext( "unknown" );
+        if ( NULL != desc ) {
+            ext = desc->mName;
+        }
+        DefaultLogger::get()->info("Found a matching importer for this file format: " + ext + "." );
         pimpl->mProgressHandler->UpdateFileRead( 0, fileSize );
         pimpl->mProgressHandler->UpdateFileRead( 0, fileSize );
 
 
         if (profiler) {
         if (profiler) {