Blender: add missing constructors.

pull/1130/head
Kim Kulling 2017-01-05 20:23:02 +01:00
parent 2038d01f22
commit dfa3409de9
2 changed files with 45 additions and 4 deletions

View File

@ -616,6 +616,17 @@ struct Object : ElemBase {
std::shared_ptr<ElemBase> data FAIL;
ListBase modifiers;
Object()
: ElemBase()
, type( Type_EMPTY )
, parent( nullptr )
, track()
, proxy()
, proxy_from()
, data() {
// empty
}
};
@ -624,6 +635,14 @@ struct Base : ElemBase {
Base* prev WARN;
std::shared_ptr<Base> next WARN;
std::shared_ptr<Object> object WARN;
Base()
: ElemBase()
, next()
, object() {
// empty
// empty
}
};
// -------------------------------------------------------------------------------
@ -635,8 +654,15 @@ struct Scene : ElemBase {
std::shared_ptr<Base> basact WARN;
ListBase base;
};
Scene()
: ElemBase()
, camera()
, world()
, basact() {
// empty
}
};
// -------------------------------------------------------------------------------
struct Image : ElemBase {
@ -664,6 +690,11 @@ struct Image : ElemBase {
short animspeed;
short gen_x, gen_y, gen_type;
Image()
: ElemBase() {
// empty
}
};
// -------------------------------------------------------------------------------
@ -751,6 +782,12 @@ struct Tex : ElemBase {
//VoxelData *vd;
//char use_nodes;
Tex()
: ElemBase() {
// empty
}
};
// -------------------------------------------------------------------------------
@ -839,9 +876,13 @@ struct MTex : ElemBase {
//float lifefac, sizefac, ivelfac, pvelfac;
//float shadowfac;
//float zenupfac, zendownfac, blendfac;
MTex()
: ElemBase() {
// empty
}
};
}
}
}
#endif

View File

@ -218,4 +218,4 @@ TEST_F( utObjImportExport, obj_import_test ) {
TEST_F( utObjImportExport, issue1111_no_mat_name_Test ) {
const aiScene *scene = m_im->ReadFileFromMemory( ( void* ) ObjModel_Issue1111.c_str(), ObjModel_Issue1111.size(), 0 );
EXPECT_NE( nullptr, scene );
}
}