From 13d8e4a66de9b438c479a0d968be96daac297c26 Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Thu, 5 Feb 2009 18:33:25 +0000 Subject: [PATCH] assimpview: fixed crash during normal recomputation. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@333 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/extra/MakeVerboseFormat.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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.