- Bugfix: catched a null pointer crash when post processing removed everything from an invalid scene

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1249 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/5/merge
ulfjorensen 2012-05-23 09:25:40 +00:00
parent d9d57804fa
commit 0693df00c5
1 changed files with 2 additions and 1 deletions

View File

@ -804,7 +804,8 @@ const aiScene* Importer::ApplyPostProcessing(unsigned int pFlags)
}
// update private scene flags
ScenePriv(pimpl->mScene)->mPPStepsApplied |= pFlags;
if( pimpl->mScene )
ScenePriv(pimpl->mScene)->mPPStepsApplied |= pFlags;
// clear any data allocated by post-process steps
pimpl->mPPShared->Clean();