Changeset 470 for trunk/src/formats
- Timestamp:
- 09/17/15 17:19:14 (10 years ago)
- Location:
- trunk/src/formats
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/formats/assimp_loader.cc
r454 r470 350 350 351 351 uint16 frame_rate = static_cast<uint16>( anim->mTicksPerSecond ); 352 float duration = static_cast<float>( anim->mDuration ); 352 int check_this; 353 uint16 duration = static_cast<uint16>( anim->mDuration ); 353 354 bool flat = false; 354 355 -
trunk/src/formats/nmd_loader.cc
r442 r470 98 98 nmd_animation_header animation_header; 99 99 source.read( &animation_header, sizeof( animation_header ), 1 ); 100 m_node_data = new mesh_nodes_data( e.name, animation_header.frame_rate, animation_header. duration, animation_header.flat );100 m_node_data = new mesh_nodes_data( e.name, animation_header.frame_rate, animation_header.frame_count, animation_header.flat ); 101 101 for ( uint32 i = 0; i < e.children; ++i ) 102 102 { … … 215 215 216 216 nmd_animation_header aheader; 217 aheader.frame_rate = nodes.get_frame_rate();218 aheader. duration = nodes.get_duration();217 aheader.frame_rate = nodes.get_fps(); 218 aheader.frame_count = nodes.get_frame_count(); 219 219 aheader.flat = nodes.is_flat(); 220 220 stream_out.write( &aheader, sizeof( aheader ), 1 );
Note: See TracChangeset
for help on using the changeset viewer.