- 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
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user