Changeset 383 for trunk/src/formats/assimp_loader.cc
- Timestamp:
- 06/02/15 20:56:15 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/formats/assimp_loader.cc
r382 r383 188 188 } 189 189 190 bool nv::assimp_loader::load_bones( size_t index, std::vector< mesh_node_data >&bones )190 bool nv::assimp_loader::load_bones( size_t index, array_ref< mesh_node_data > bones ) 191 191 { 192 192 if ( m_scene == nullptr ) return false; … … 285 285 { 286 286 const aiScene* scene = (const aiScene*)m_scene; 287 std::vector< mesh_node_data > final_bones;287 vector< mesh_node_data > final_bones; 288 288 std::unordered_map< std::string, uint16 > names; 289 289 for ( unsigned int m = 0; m < m_mesh_count; ++m ) 290 290 { 291 291 uint16 translate[MAX_BONES]; 292 std::vector< mesh_node_data > bones;292 vector< mesh_node_data > bones; 293 293 const aiMesh* mesh = scene->mMeshes[ m ]; 294 294 if ( mesh->mNumBones != 0 ) … … 334 334 } 335 335 mesh_node_data* bones = new mesh_node_data[ final_bones.size() ]; 336 std::copy( final_bones.begin(), final_bones.end(), bones );336 nv::raw_copy( final_bones.begin(), final_bones.end(), bones ); 337 337 return new mesh_nodes_data( "bones", final_bones.size(), bones ); 338 338 }
Note: See TracChangeset
for help on using the changeset viewer.