Ignore:
Timestamp:
07/15/15 19:59:40 (10 years ago)
Author:
epyon
Message:
  • mesh nodes store name hash instead of string
  • nmd format refactoring
File:
1 edited

Legend:

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

    r419 r420  
    426426
    427427                nodes[i].transform = mat4();
    428                 nodes[i].name      = name.to_string();
     428                nodes[i].name_hash = hash_string< uint64 >( name.data() );
    429429                nodes[i].parent_id = -1;
    430                 nodes[i].target_id = -1;
    431430                nodes[i].data      = data_channel_set_creator::create( 1 );
    432431                load_tags( data_channel_set_creator( nodes[i].data ).add_channel<md3_key>( uint32( md3->header.num_frames ) ).channel(), name );
Note: See TracChangeset for help on using the changeset viewer.