assimpview: fixed crash during normal recomputation.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@333 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
4048eb92f5
commit
13d8e4a66d
|
@ -66,12 +66,14 @@ void MakeVerboseFormatProcess::Execute( aiScene* pScene)
|
||||||
bool bHas = false;
|
bool bHas = false;
|
||||||
for( unsigned int a = 0; a < pScene->mNumMeshes; a++)
|
for( unsigned int a = 0; a < pScene->mNumMeshes; a++)
|
||||||
{
|
{
|
||||||
if( this->MakeVerboseFormat( pScene->mMeshes[a]))
|
if( MakeVerboseFormat( pScene->mMeshes[a]))
|
||||||
bHas = true;
|
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.");
|
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.
|
// Executes the post processing step on the given imported data.
|
||||||
|
|
Loading…
Reference in New Issue