浏览代码

LimitBoneWeightsProcess: Initialize all members of Weight in constructor

Turo Lamminen 7 年之前
父节点
当前提交
be865ae613
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      code/LimitBoneWeightsProcess.h

+ 5 - 1
code/LimitBoneWeightsProcess.h

@@ -120,7 +120,11 @@ public:
     {
         unsigned int mBone; ///< Index of the bone
         float mWeight;      ///< Weight of that bone on this vertex
-        Weight() { }
+        Weight()
+        : mBone(0)
+        , mWeight(0.0f)
+        { }
+
         Weight( unsigned int pBone, float pWeight)
         {
             mBone = pBone;