diff --git a/code/extra/MakeVerboseFormat.cpp b/code/extra/MakeVerboseFormat.cpp index a9ada387f..cdfde5b8c 100644 --- a/code/extra/MakeVerboseFormat.cpp +++ b/code/extra/MakeVerboseFormat.cpp @@ -66,12 +66,14 @@ void MakeVerboseFormatProcess::Execute( aiScene* pScene) bool bHas = false; for( unsigned int a = 0; a < pScene->mNumMeshes; a++) { - if( this->MakeVerboseFormat( pScene->mMeshes[a])) + if( MakeVerboseFormat( pScene->mMeshes[a])) bHas = true; } - if (bHas)DefaultLogger::get()->info("MakeVerboseFormatProcess finished. There was much work to do ..."); + if (bHas) DefaultLogger::get()->info("MakeVerboseFormatProcess finished. There was much work to do ..."); else DefaultLogger::get()->debug("MakeVerboseFormatProcess. There was nothing to do."); + pScene->mFlags &= ~AI_SCENE_FLAGS_NON_VERBOSE_FORMAT; + } // ------------------------------------------------------------------------------------------------ // Executes the post processing step on the given imported data.