protected virtual void ReadAnimations( BinaryReader reader )
{
if ( !IsEOF( reader ) )
{
MeshChunkID chunkID = ReadChunk( reader );
while ( !IsEOF( reader ) &&
chunkID == MeshChunkID.Animation )
{
switch ( chunkID )
{
case MeshChunkID.Animation:
ReadAnimation( reader );
break;
}
if ( !IsEOF( reader ) )
chunkID = ReadChunk( reader );
}
if ( !IsEOF( reader ) )
{
// backpedal to the start of chunk
Seek( reader, -ChunkOverheadSize );
}
}
}