2
0
Эх сурвалжийг харах

LimitBoneWeightsProcess: Initialize all members of Weight in constructor

Turo Lamminen 7 жил өмнө
parent
commit
be865ae613

+ 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;