Changeset 414 for trunk


Ignore:
Timestamp:
07/09/15 19:19:26 (10 years ago)
Author:
epyon
Message:
  • fix for key_data - everything is fine again
Location:
trunk/nv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/gfx/animation.hh

    r413 r414  
    2929                        NV_ASSERT( channel, "nullptr passed to add_channel!" );
    3030                        m_channels.push_back( channel );
    31                         m_final_key.append( channel->descriptor() );
     31                        for ( const auto& cslot : channel->descriptor() )
     32                                if ( cslot.vslot != slot::TIME )
     33                                        m_final_key.push_slot( cslot.etype, cslot.vslot );
     34                        //m_final_key.append( channel->descriptor() );
    3235                }
    3336
  • trunk/nv/interface/data_descriptor.hh

    r413 r414  
    272272                }
    273273
     274                void push_slot( datatype etype, slot vslot )
     275                {
     276                        m_slots[m_count].etype  = etype;
     277                        m_slots[m_count].offset = m_size;
     278                        m_slots[m_count].vslot  = vslot;
     279                        m_size += get_datatype_info( etype ).size;
     280                        m_count++;
     281                }
     282
    274283                void append( const data_descriptor& desc )
    275284                {
Note: See TracChangeset for help on using the changeset viewer.