- BUGFIX: Fix compiler warning: variable is not initialized.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@514 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
1a4ef72ffb
commit
84ff1090c2
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue