Changeset 280 for trunk/src/formats/assimp_loader.cc
- Timestamp:
- 07/08/14 18:29:24 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/formats/assimp_loader.cc
r279 r280 143 143 } 144 144 145 mesh_raw_ index_channel* ichannel = mesh_raw_index_channel::create( USHORT, mesh->mNumFaces * 3 );146 result-> set_index_channel( ichannel );145 mesh_raw_channel* ichannel = mesh_raw_channel::create_index( USHORT, mesh->mNumFaces * 3 ); 146 result->add_channel( ichannel ); 147 147 uint16* indices = (uint16*)ichannel->data; 148 148 for (unsigned int i=0; i<mesh->mNumFaces; i++) … … 294 294 { 295 295 mesh_data* mesh = model->meshes[m]; 296 mesh_raw_channel* channel = mesh->get_channel_data()[0]; 296 mesh_raw_channel* channel = mesh->get_raw_channels()[0]; 297 NV_ASSERT( !channel->is_index(), "index channel in release_merged!" ); 297 298 assimp_skinned_vtx* va = (assimp_skinned_vtx*)channel->data; 298 299 for ( unsigned v = 0; v < channel->count; ++v )
Note: See TracChangeset
for help on using the changeset viewer.