Changeset 532 for trunk/src/gfx
- Timestamp:
- 01/09/17 17:49:22 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gfx/mesh_creator.cc
r526 r532 25 25 && old_keys->get_channel(0)->descriptor()[0].etype == TRANSFORM ) continue; 26 26 27 size_tmax_keys = 0;28 for ( size_tc = 0; c < chan_count; ++c )27 uint32 max_keys = 0; 28 for ( uint32 c = 0; c < chan_count; ++c ) 29 29 { 30 30 max_keys = nv::max( max_keys, old_keys->get_channel(c)->size() ); … … 45 45 for ( uint16 c = 0; c < chan_count; ++c ) 46 46 { 47 size_tidx = nv::min( old_keys->get_channel_size(c) - 1, n );47 uint32 idx = nv::min( old_keys->get_channel_size(c) - 1, n ); 48 48 pkey += raw_channel_interpolator::get_raw( *old_keys->get_channel(c), idx, pkey ); 49 49 } … … 66 66 for ( auto node : m_data->m_data ) 67 67 { 68 for ( size_tc = 0; c < node->size(); ++c )68 for ( uint32 c = 0; c < node->size(); ++c ) 69 69 { 70 70 raw_data_channel_access channel( node, c ); 71 size_tkey_size = channel.element_size();72 for ( size_tn = 0; n < channel.size(); ++n )71 uint32 key_size = channel.element_size(); 72 for ( uint32 n = 0; n < channel.size(); ++n ) 73 73 { 74 74 transform_key_raw( node->get_channel( c )->descriptor(), channel.raw_data() + n * key_size, scale, r33, ri33 ); … … 568 568 int och_ti = other->get_channel_index( slot::TEXCOORD ); 569 569 if ( ch_pi == -1 || ch_ti == -1 ) return; 570 size_tsize = m_data->get_channel_size( unsigned(ch_ti) );571 size_tosize = other->get_channel_size( unsigned(och_ti) );572 size_tcount = m_data->get_channel_size( unsigned(ch_pi) );573 size_tocount = other->get_channel_size( unsigned(och_pi) );570 uint32 size = m_data->get_channel_size( unsigned(ch_ti) ); 571 uint32 osize = other->get_channel_size( unsigned(och_ti) ); 572 uint32 count = m_data->get_channel_size( unsigned(ch_pi) ); 573 uint32 ocount = other->get_channel_size( unsigned(och_pi) ); 574 574 if ( count % size != 0 || ocount % osize != 0 ) return; 575 575 if ( count / size != ocount / osize ) return; … … 583 583 data_descriptor old_desc = old->descriptor(); 584 584 bool old_is_index = old_size > 0 && old_desc[0].vslot == slot::INDEX; 585 size_tframe_count = ( old_is_index ? 1 : old_size / size );585 uint32 frame_count = ( old_is_index ? 1 : old_size / size ); 586 586 data.set_channel( c, append_channels( *old, *other->get_channel(c), frame_count ) ); 587 587 if ( old_is_index )
Note: See TracChangeset
for help on using the changeset viewer.