Changeset 423 for trunk/src/formats/md5_loader.cc
- Timestamp:
- 07/16/15 19:24:30 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/formats/md5_loader.cc
r421 r423 112 112 assert( m_nodes == nullptr ); 113 113 nodes = new mesh_node_data[ num_joints ]; 114 m_nodes = new mesh_nodes_data( "md5_bones", num_joints, nodes ); 114 int name_; //"md5_bones" 115 m_nodes = new mesh_nodes_data( 0, num_joints, nodes ); 115 116 discard( sstream, "{" ); 116 117 for ( size_t i = 0; i < m_nodes->get_count(); ++i ) … … 128 129 remove_quotes( name ); 129 130 // nodes[i].name = name; 130 nodes[i].name _hash= hash_string< uint64 >( name.c_str() );131 nodes[i].name = hash_string< uint64 >( name.c_str() ); 131 132 // nodes[i].target_id = -1; 132 133 nodes[i].parent_id = -1; … … 242 243 assert( nodes == nullptr ); 243 244 nodes = new mesh_node_data[ num_joints ]; 244 m_nodes = new mesh_nodes_data( "md5_animation", num_joints, nodes, static_cast< nv::uint16 >( frame_rate ), static_cast< float >( num_frames ), true ); 245 int name_; 246 m_nodes = new mesh_nodes_data( 0/*"md5_animation"*/, num_joints, nodes, static_cast< nv::uint16 >( frame_rate ), static_cast< float >( num_frames ), true ); 245 247 joint_infos.resize( num_joints ); 246 248 … … 252 254 remove_quotes( name ); 253 255 // nodes[i].name = name; 254 nodes[i].name _hash= hash_string< uint64 >( name.c_str() );256 nodes[i].name = hash_string< uint64 >( name.c_str() ); 255 257 nodes[i].transform = mat4(); 256 258 nodes[i].data = data_channel_set_creator::create( 1 );
Note: See TracChangeset
for help on using the changeset viewer.