Browse Source

Added missing pointer to NULL assignment in PretransformVertices.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@187 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 17 years ago
parent
commit
094ed7b9c0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      code/PretransformVertices.cpp

+ 1 - 0
code/PretransformVertices.cpp

@@ -385,6 +385,7 @@ void PretransformVertices::Execute( aiScene* pScene)
 	// now delete all meshes in the scene and build a new mesh list
 	// now delete all meshes in the scene and build a new mesh list
 	for (unsigned int i = 0; i < pScene->mNumMeshes;++i)
 	for (unsigned int i = 0; i < pScene->mNumMeshes;++i)
 	{
 	{
+		pScene->mMeshes[i]->mBones = NULL;
 		delete pScene->mMeshes[i];
 		delete pScene->mMeshes[i];
 
 
 		// invalidate the contents of the old mesh array. We will most
 		// invalidate the contents of the old mesh array. We will most