Browse Source

assimpview: fixed crash during normal recomputation.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@333 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 16 years ago
parent
commit
13d8e4a66d
1 changed files with 4 additions and 2 deletions
  1. 4 2
      code/extra/MakeVerboseFormat.cpp

+ 4 - 2
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.