Mesh: fix coverity bug.
parent
39e048dea6
commit
c1b56715fe
|
@ -3,7 +3,7 @@
|
||||||
Open Asset Import Library (assimp)
|
Open Asset Import Library (assimp)
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
Copyright (c) 2006-2016, assimp team
|
Copyright (c) 2006-2017, assimp team
|
||||||
|
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
|
@ -378,7 +378,9 @@ struct aiAnimMesh
|
||||||
*/
|
*/
|
||||||
unsigned int mNumVertices;
|
unsigned int mNumVertices;
|
||||||
|
|
||||||
/** Weight of the AnimMesh. */
|
/**
|
||||||
|
* Weight of the AnimMesh.
|
||||||
|
*/
|
||||||
float mWeight;
|
float mWeight;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -389,6 +391,7 @@ struct aiAnimMesh
|
||||||
, mTangents( NULL )
|
, mTangents( NULL )
|
||||||
, mBitangents( NULL )
|
, mBitangents( NULL )
|
||||||
, mNumVertices( 0 )
|
, mNumVertices( 0 )
|
||||||
|
, mWeight( 0.0f )
|
||||||
{
|
{
|
||||||
// fixme consider moving this to the ctor initializer list as well
|
// fixme consider moving this to the ctor initializer list as well
|
||||||
for( unsigned int a = 0; a < AI_MAX_NUMBER_OF_TEXTURECOORDS; a++){
|
for( unsigned int a = 0; a < AI_MAX_NUMBER_OF_TEXTURECOORDS; a++){
|
||||||
|
|
Loading…
Reference in New Issue