Ignore:
Timestamp:
05/22/14 01:19:08 (11 years ago)
Author:
epyon
Message:
  • significant simplification of the md5 code
  • proper instancing for both md5 animations and meshes
  • transform_vectors
File:
1 edited

Legend:

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

    r240 r241  
    285285}
    286286
    287 void nv::md3_loader::load_tags( std::vector<transform>& t, const std::string& tag )
     287void nv::md3_loader::load_tags( transform_vector& t, const std::string& tag )
    288288{
    289289        md3_t* md3 = (md3_t*)m_md3;
    290         t.clear();
    291290        for ( sint32 f = 0; f < md3->header.num_frames; ++f )
    292291        {
     
    301300                                vec3 axisy  ( md3_vec3( rtag.axis[2] ) );
    302301                                vec3 origin ( md3_vec3( rtag.origin )  );
    303                                 t.emplace_back( origin, quat( mat3( axisx, axisy, axisz ) ) );
     302                                t.insert( transform( origin, quat( mat3( axisx, axisy, axisz ) ) ) );
    304303                        }
    305304                }
Note: See TracChangeset for help on using the changeset viewer.