Initialize all members of aiVertexWeight in constructor

pull/1765/head
Turo Lamminen 2018-02-03 16:34:40 +02:00
parent 82980c8a9c
commit b0b125dfe6
1 changed files with 4 additions and 1 deletions

View File

@ -212,7 +212,10 @@ struct aiVertexWeight
#ifdef __cplusplus
//! Default constructor
aiVertexWeight() { }
aiVertexWeight()
: mVertexId(0)
, mWeight(0.0f)
{ }
//! Initialisation from a given index and vertex weight factor
//! \param pID ID