Browse Source

Fixed: Initialize all members in MeshHelper

Richard 10 years ago
parent
commit
c331df69d7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tools/assimp_view/AssetHelper.h

+ 4 - 0
tools/assimp_view/AssetHelper.h

@@ -145,6 +145,7 @@ namespace AssimpView {
 
 
             MeshHelper()
             MeshHelper()
                 :
                 :
+                eShadingMode(),
                 piVB( NULL ),
                 piVB( NULL ),
                 piIB( NULL ),
                 piIB( NULL ),
                 piVBNormals( NULL ),
                 piVBNormals( NULL ),
@@ -158,6 +159,9 @@ namespace AssimpView {
                 piOpacityTexture( NULL ),
                 piOpacityTexture( NULL ),
                 piShininessTexture( NULL ),
                 piShininessTexture( NULL ),
                 piLightmapTexture( NULL ),
                 piLightmapTexture( NULL ),
+                fOpacity(),
+                fShininess(),
+                fSpecularStrength()
                 twosided( false ),
                 twosided( false ),
                 pvOriginalNormals( NULL )
                 pvOriginalNormals( NULL )
             {}
             {}