Merge pull request #51 from asmaloney/init_fixes
Prefer init list and add missing initializationspull/53/head
commit
27c578675a
|
@ -631,9 +631,13 @@ struct aiMaterialProperty
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
||||||
aiMaterialProperty() {
|
aiMaterialProperty()
|
||||||
mData = NULL;
|
: mSemantic( 0 )
|
||||||
mIndex = mSemantic = 0;
|
, mIndex( 0 )
|
||||||
|
, mDataLength( 0 )
|
||||||
|
, mType( aiPTI_Float )
|
||||||
|
, mData( NULL )
|
||||||
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
~aiMaterialProperty() {
|
~aiMaterialProperty() {
|
||||||
|
|
|
@ -382,6 +382,7 @@ struct aiAnimMesh
|
||||||
, mNormals()
|
, mNormals()
|
||||||
, mTangents()
|
, mTangents()
|
||||||
, mBitangents()
|
, mBitangents()
|
||||||
|
, mNumVertices( 0 )
|
||||||
{
|
{
|
||||||
// fixme consider moving this to the ctor initializer list as well
|
// fixme consider moving this to the ctor initializer list as well
|
||||||
for( unsigned int a = 0; a < AI_MAX_NUMBER_OF_TEXTURECOORDS; a++){
|
for( unsigned int a = 0; a < AI_MAX_NUMBER_OF_TEXTURECOORDS; a++){
|
||||||
|
|
Loading…
Reference in New Issue