coverity scan: make place of false positive more understandable.
parent
7ef579674d
commit
430b614a69
|
@ -174,7 +174,8 @@ bool MakeVerboseFormatProcess::MakeVerboseFormat(aiMesh* pcMesh)
|
||||||
delete pcMesh->mBones[i]->mWeights;
|
delete pcMesh->mBones[i]->mWeights;
|
||||||
if (!newWeights[i].empty()) {
|
if (!newWeights[i].empty()) {
|
||||||
pcMesh->mBones[i]->mWeights = new aiVertexWeight[newWeights[i].size()];
|
pcMesh->mBones[i]->mWeights = new aiVertexWeight[newWeights[i].size()];
|
||||||
memcpy(pcMesh->mBones[i]->mWeights, &newWeights[i][0],
|
aiVertexWeight *weightToCopy = &( newWeights[i][0] );
|
||||||
|
memcpy(pcMesh->mBones[i]->mWeights, weightToCopy,
|
||||||
sizeof(aiVertexWeight) * newWeights[i].size());
|
sizeof(aiVertexWeight) * newWeights[i].size());
|
||||||
delete[] newWeights;
|
delete[] newWeights;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -249,7 +249,8 @@ struct aiBone
|
||||||
|
|
||||||
//! Default constructor
|
//! Default constructor
|
||||||
aiBone()
|
aiBone()
|
||||||
: mNumWeights( 0 )
|
: mName()
|
||||||
|
, mNumWeights( 0 )
|
||||||
, mWeights( NULL )
|
, mWeights( NULL )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue