Explorar o código

Fixed: Initialize all members in MeshHelper

Richard %!s(int64=10) %!d(string=hai) anos
pai
achega
c331df69d7
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tools/assimp_view/AssetHelper.h

+ 4 - 0
tools/assimp_view/AssetHelper.h

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