- BUGFIX: Fix compiler warning: variable is not initialized.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@514 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
kimmi 2009-12-24 11:05:32 +00:00
parent 1a4ef72ffb
commit 84ff1090c2
1 changed files with 3 additions and 3 deletions

View File

@ -84,14 +84,14 @@ bool MakeVerboseFormatProcess::MakeVerboseFormat(aiMesh* pcMesh)
unsigned int iOldNumVertices = pcMesh->mNumVertices; unsigned int iOldNumVertices = pcMesh->mNumVertices;
const unsigned int iNumVerts = pcMesh->mNumFaces*3; const unsigned int iNumVerts = pcMesh->mNumFaces*3;
aiVector3D* pvPositions = new aiVector3D[iNumVerts]; aiVector3D* pvPositions = new aiVector3D[ iNumVerts ];
aiVector3D* pvNormals; aiVector3D* pvNormals = NULL;
if (pcMesh->HasNormals()) if (pcMesh->HasNormals())
{ {
pvNormals = new aiVector3D[iNumVerts]; pvNormals = new aiVector3D[iNumVerts];
} }
aiVector3D* pvTangents, *pvBitangents; aiVector3D* pvTangents = NULL, *pvBitangents = NULL;
if (pcMesh->HasTangentsAndBitangents()) if (pcMesh->HasTangentsAndBitangents())
{ {
pvTangents = new aiVector3D[iNumVerts]; pvTangents = new aiVector3D[iNumVerts];