Changeset 261 for trunk/src/gfx/skeletal_mesh.cc
- Timestamp:
- 06/18/14 20:05:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gfx/skeletal_mesh.cc
r252 r261 41 41 uint32 anim_duration = uint32( frame_duration * (float)m_animation->get_frame_count() ); 42 42 while ( m_animation_time >= anim_duration ) m_animation_time -= anim_duration; 43 m_animation->update_skeleton( m_transform , (float)m_animation_time * 0.001f );44 m_mesh_data->apply( m_transform );43 m_animation->update_skeleton( m_transform.data(), (float)m_animation_time * 0.001f ); 44 m_mesh_data->apply( m_transform.data() ); 45 45 vertex_buffer* vb = m_va->find_buffer( nv::POSITION ); 46 46 vb->bind();
Note: See TracChangeset
for help on using the changeset viewer.