Changeset 411 for trunk/src/formats/assimp_loader.cc
- Timestamp:
- 07/09/15 12:19:30 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/formats/assimp_loader.cc
r410 r411 118 118 119 119 bool skinned = mesh->mNumBones > 0; 120 mesh_raw_channel* channel = nullptr;120 raw_data_channel* channel = nullptr; 121 121 if ( skinned ) 122 channel = mesh_raw_channel::create< assimp_skinned_vtx >( mesh->mNumVertices );122 channel = raw_data_channel::create< assimp_skinned_vtx >( mesh->mNumVertices ); 123 123 else 124 channel = mesh_raw_channel::create< assimp_plain_vtx >( mesh->mNumVertices );124 channel = raw_data_channel::create< assimp_plain_vtx >( mesh->mNumVertices ); 125 125 126 126 data->add_channel( channel ); … … 169 169 } 170 170 171 mesh_raw_channel* ichannel = mesh_raw_channel::create_index( USHORT, mesh->mNumFaces * 3 );171 raw_data_channel* ichannel = raw_data_channel::create_index( USHORT, mesh->mNumFaces * 3 ); 172 172 data->add_channel( ichannel ); 173 173 uint16* indices = reinterpret_cast<uint16*>( ichannel->data ); … … 315 315 if ( m > 0 && bones.size() > 0 ) 316 316 { 317 mesh_raw_channel* channel = meshes[m].get_raw_channels()[0];317 raw_data_channel* channel = meshes[m].get_raw_channels()[0]; 318 318 assimp_skinned_vtx* va = reinterpret_cast< assimp_skinned_vtx* >( channel->data ); 319 319 for ( unsigned v = 0; v < channel->count; ++v ) … … 418 418 419 419 data->data = new key_data; 420 key_raw_channel* raw_pchannel = key_raw_channel::create<assimp_key_p>( node->mNumPositionKeys );421 key_raw_channel* raw_rchannel = key_raw_channel::create<assimp_key_r>( node->mNumRotationKeys );422 // key_raw_channel* raw_schannel = key_raw_channel::create<assimp_key_s>( node->mNumScalingKeys );420 raw_data_channel* raw_pchannel = raw_data_channel::create<assimp_key_p>( node->mNumPositionKeys ); 421 raw_data_channel* raw_rchannel = raw_data_channel::create<assimp_key_r>( node->mNumRotationKeys ); 422 //raw_data_channel* raw_schannel = raw_data_channel::create<assimp_key_s>( node->mNumScalingKeys ); 423 423 data->data->add_channel( raw_pchannel ); 424 424 data->data->add_channel( raw_rchannel );
Note: See TracChangeset
for help on using the changeset viewer.