浏览代码

Fixed: Initialize all members in MeshHelper

Richard 10 年之前
父节点
当前提交
c331df69d7
共有 1 个文件被更改,包括 4 次插入0 次删除
  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 )
             {}