LimitBoneWeightsProcess: Initialize all members of Weight in constructor

pull/1765/head
Turo Lamminen 2018-02-03 17:19:27 +02:00
parent 9397932e4f
commit be865ae613
1 changed files with 5 additions and 1 deletions

View File

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