INcreas readability.
parent
001eef2a9f
commit
3af8014055
|
@ -466,8 +466,9 @@ void XFileParser::ParseDataObjectMesh( Mesh* pMesh)
|
||||||
for( unsigned int a = 0; a < numPosFaces; a++)
|
for( unsigned int a = 0; a < numPosFaces; a++)
|
||||||
{
|
{
|
||||||
unsigned int numIndices = ReadInt();
|
unsigned int numIndices = ReadInt();
|
||||||
if( numIndices < 3)
|
if( numIndices < 3) {
|
||||||
ThrowException( boost::str( boost::format( "Invalid index count %1% for face %2%.") % numIndices % a));
|
ThrowException( boost::str( boost::format( "Invalid index count %1% for face %2%.") % numIndices % a));
|
||||||
|
}
|
||||||
|
|
||||||
// read indices
|
// read indices
|
||||||
Face& face = pMesh->mPosFaces[a];
|
Face& face = pMesh->mPosFaces[a];
|
||||||
|
|
Loading…
Reference in New Issue