Changeset 491 for trunk/src/formats


Ignore:
Timestamp:
04/29/16 12:42:28 (9 years ago)
Author:
epyon
Message:
  • mass update (will try to do atomic from now)
File:
1 edited

Legend:

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

    r487 r491  
    188188
    189189        uint8*  cdata   = maccess.add_channel( desc, mesh->mNumVertices ).raw_data();
    190         uint16* indices = reinterpret_cast<uint16*>( maccess.add_channel< index_u16 >( mesh->mNumFaces * 3 ).raw_data() );
     190        uint32* indices = reinterpret_cast<uint32*>( maccess.add_channel< index_u32 >( mesh->mNumFaces * 3 ).raw_data() );
    191191
    192192        if ( mesh->mTangents && mesh->mBitangents )
     
    239239                for (unsigned int j=0; j<face->mNumIndices; j++)
    240240                {
    241                         indices[ i*3 + j ] = uint16( face->mIndices[j] );
     241                        indices[ i*3 + j ] = uint32( face->mIndices[j] );
    242242                }
    243243        }
Note: See TracChangeset for help on using the changeset viewer.