Changeset 491 for trunk/src/formats
- Timestamp:
- 04/29/16 12:42:28 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/formats/assimp_loader.cc
r487 r491 188 188 189 189 uint8* cdata = maccess.add_channel( desc, mesh->mNumVertices ).raw_data(); 190 uint 16* indices = reinterpret_cast<uint16*>( maccess.add_channel< index_u16>( mesh->mNumFaces * 3 ).raw_data() );190 uint32* indices = reinterpret_cast<uint32*>( maccess.add_channel< index_u32 >( mesh->mNumFaces * 3 ).raw_data() ); 191 191 192 192 if ( mesh->mTangents && mesh->mBitangents ) … … 239 239 for (unsigned int j=0; j<face->mNumIndices; j++) 240 240 { 241 indices[ i*3 + j ] = uint 16( face->mIndices[j] );241 indices[ i*3 + j ] = uint32( face->mIndices[j] ); 242 242 } 243 243 }
Note: See TracChangeset
for help on using the changeset viewer.