Changeset 431 for trunk/src/formats


Ignore:
Timestamp:
07/21/15 13:31:23 (10 years ago)
Author:
epyon
Message:
  • hash storage type
  • string hash storage type
  • several minor fixes
  • more cleanups needed
Location:
trunk/src/formats
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/formats/assimp_loader.cc

    r428 r431  
    288288        const aiScene* scene = reinterpret_cast<const aiScene*>( m_scene );
    289289        mesh_nodes_data* result = new mesh_nodes_data( make_name( "bones" ) );
    290         unordered_map< uint64, uint16 > names;
     290        hashed_table< shash64, uint16 > names;
    291291        for ( unsigned int m = 0; m < m_mesh_count; ++m )
    292292        {
  • trunk/src/formats/md3_loader.cc

    r427 r431  
    420420        uint32 node_count = uint32( md3->header.num_tags );
    421421        if ( node_count == 0 ) return nullptr;
    422         mesh_nodes_data* result = new mesh_nodes_data( m_strings ? m_strings->insert( "tags" ) : 0 );
     422        mesh_nodes_data* result = new mesh_nodes_data( m_strings ? m_strings->insert( "tags" ) : shash64() );
    423423        for ( uint32 i = 0; i < node_count; ++i )
    424424        {
  • trunk/src/formats/nmd_loader.cc

    r428 r431  
    233233        sheader.children   = 0;
    234234        sheader.size       = strings.dump_size();
    235         sheader.name       = 0;
     235        sheader.name       = shash64();
    236236        sheader.parent_id  = -1;
    237237    sheader.attributes = 0;
Note: See TracChangeset for help on using the changeset viewer.