Explorar o código

Mesh: fix coverity finding.

Kim Kulling %!s(int64=8) %!d(string=hai) anos
pai
achega
d02a4c36a9
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      include/assimp/mesh.h

+ 4 - 1
include/assimp/mesh.h

@@ -636,7 +636,9 @@ struct aiMesh
      *  Note! Currently only works with Collada loader.*/
      *  Note! Currently only works with Collada loader.*/
     C_STRUCT aiAnimMesh** mAnimMeshes;
     C_STRUCT aiAnimMesh** mAnimMeshes;
 
 
-    /** Method of morphing when animeshes are specified. */
+    /** 
+     *  Method of morphing when animeshes are specified. 
+     */
     unsigned int mMethod;
     unsigned int mMethod;
 	
 	
 #ifdef __cplusplus
 #ifdef __cplusplus
@@ -656,6 +658,7 @@ struct aiMesh
         , mMaterialIndex( 0 )
         , mMaterialIndex( 0 )
         , mNumAnimMeshes( 0 )
         , mNumAnimMeshes( 0 )
         , mAnimMeshes( NULL )
         , mAnimMeshes( NULL )
+        , mMethod( 0 )
     {
     {
         for( unsigned int a = 0; a < AI_MAX_NUMBER_OF_TEXTURECOORDS; a++)
         for( unsigned int a = 0; a < AI_MAX_NUMBER_OF_TEXTURECOORDS; a++)
         {
         {