Granulate file loading too

This commit is contained in:
Gargaj
2014-08-05 00:05:18 +02:00
parent dfe1f03e5b
commit dbc553343c
2 changed files with 18 additions and 5 deletions

View File

@@ -642,14 +642,14 @@ const aiScene* Importer::ReadFile( const char* _pFile, unsigned int pFlags)
// Dispatch the reading to the worker class for this format
DefaultLogger::get()->info("Found a matching importer for this file format");
pimpl->mProgressHandler->Update();
pimpl->mProgressHandler->UpdateFileRead( 0, 1 );
if (profiler) {
profiler->BeginRegion("import");
}
pimpl->mScene = imp->ReadFile( this, pFile, pimpl->mIOHandler);
pimpl->mProgressHandler->Update();
pimpl->mProgressHandler->UpdateFileRead( 1, 1 );
if (profiler) {
profiler->EndRegion("import");