Mesh: fix coverity bug.

pull/1258/head
Kim Kulling 2017-05-06 11:04:40 +02:00
parent 39e048dea6
commit c1b56715fe
1 changed files with 6 additions and 3 deletions

View File

@ -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.
@ -377,8 +377,10 @@ struct aiAnimMesh
* from language bindings. * from language bindings.
*/ */
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++){