Fixed: Initialize members in SmoothinGroups

pull/596/head
Richard 2015-06-30 23:44:57 -06:00
parent db4232cb4a
commit 6fb38a375e
1 changed files with 4 additions and 3 deletions

View File

@ -52,9 +52,10 @@ http://www.jalix.org/ressources/graphics/3DS/_unofficials/3ds-unofficial.txt */
/** Helper structure representing a face with smoothing groups assigned */ /** Helper structure representing a face with smoothing groups assigned */
struct FaceWithSmoothingGroup struct FaceWithSmoothingGroup
{ {
FaceWithSmoothingGroup() : iSmoothGroup(0) FaceWithSmoothingGroup()
: mIndices(),
iSmoothGroup(0)
{ {
// let the rest uninitialized for performance - in release builds.
// in debug builds set all indices to a common magic value // in debug builds set all indices to a common magic value
#ifdef ASSIMP_BUILD_DEBUG #ifdef ASSIMP_BUILD_DEBUG
this->mIndices[0] = 0xffffffff; this->mIndices[0] = 0xffffffff;
@ -65,7 +66,7 @@ struct FaceWithSmoothingGroup
//! Indices. .3ds is using uint16. However, after //! Indices. .3ds is using uint16. However, after
//! an unique vrtex set has been generated, //! an unique vertex set has been generated,
//! individual index values might exceed 2^16 //! individual index values might exceed 2^16
uint32_t mIndices[3]; uint32_t mIndices[3];