projects
/
platform
/
upstream
/
assimp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26aa18c
)
MakeVerboseFormat: fix invalid delete statement.
author
Kim Kulling
<kim.kulling@googlemail.com>
Mon, 29 Aug 2016 17:56:38 +0000
(19:56 +0200)
committer
Kim Kulling
<kim.kulling@googlemail.com>
Mon, 29 Aug 2016 17:56:38 +0000
(19:56 +0200)
code/MakeVerboseFormat.cpp
patch
|
blob
|
history
diff --git
a/code/MakeVerboseFormat.cpp
b/code/MakeVerboseFormat.cpp
index
d51642c
..
df3b97a
100644
(file)
--- a/
code/MakeVerboseFormat.cpp
+++ b/
code/MakeVerboseFormat.cpp
@@
-171,7
+171,7
@@
bool MakeVerboseFormatProcess::MakeVerboseFormat(aiMesh* pcMesh)
// build output vertex weights
for (unsigned int i = 0;i < pcMesh->mNumBones;++i)
{
- delete pcMesh->mBones[i]->mWeights;
+ delete
[]
pcMesh->mBones[i]->mWeights;
if (!newWeights[i].empty()) {
pcMesh->mBones[i]->mWeights = new aiVertexWeight[newWeights[i].size()];
aiVertexWeight *weightToCopy = &( newWeights[i][0] );