coverity findings: add missing initialization.

pull/739/head
Kim Kulling 2015-12-31 16:00:19 +01:00
parent 217ec76dfb
commit 4e9ee4e406
2 changed files with 7 additions and 6 deletions

View File

@ -492,7 +492,7 @@ void SceneCombiner::MergeScenes(aiScene** _dest, aiScene* master,
// To offset or not to offset, this is the question // To offset or not to offset, this is the question
if (n != (int)duplicates[n]) if (n != (int)duplicates[n])
{ {
// Get full scenegraph copy // Get full scene-graph copy
Copy( &node, (*cur)->mRootNode ); Copy( &node, (*cur)->mRootNode );
OffsetNodeMeshIndices(node,offset[duplicates[n]]); OffsetNodeMeshIndices(node,offset[duplicates[n]]);

View File

@ -78,13 +78,14 @@ static const aiImporterDesc desc = {
glTFImporter::glTFImporter() glTFImporter::glTFImporter()
: BaseImporter() : BaseImporter()
{ , meshOffsets()
, embeddedTexIdxs()
, mScene( NULL ) {
// empty
} }
glTFImporter::~glTFImporter() glTFImporter::~glTFImporter() {
{ // empty
} }
const aiImporterDesc* glTFImporter::GetInfo() const const aiImporterDesc* glTFImporter::GetInfo() const