Bugfix : Replaced some new[]s with std::vectors ( merged from GitHub, thanks to Riku Palomäki ).

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1214 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/5/head
kimmi 2012-03-20 20:35:21 +00:00
parent b724ac5c2c
commit 79f255bc40
1 changed files with 1 additions and 4 deletions

View File

@ -1152,7 +1152,7 @@ void ASEImporter::ConvertMeshes(ASE::Mesh& mesh, std::vector<aiMesh*>& avOutMesh
// copy vertex bones
if (!mesh.mBones.empty() && !mesh.mBoneVertices.empty()) {
std::vector<aiVertexWeight>* avBonesOut = new std::vector<aiVertexWeight>[mesh.mBones.size()];
std::vector<std::vector<aiVertexWeight> > avBonesOut( mesh.mBones.size() );
// find all vertex weights for this bone
unsigned int quak = 0;
@ -1188,9 +1188,6 @@ void ASEImporter::ConvertMeshes(ASE::Mesh& mesh, std::vector<aiMesh*>& avOutMesh
++pcBone;
}
}
// delete allocated storage
delete[] avBonesOut;
}
}
}