From 72f67ea0cdb4d55c48eea7a9b1bd39527671fae0 Mon Sep 17 00:00:00 2001 From: Johannes Ebersold Date: Wed, 19 Nov 2014 14:32:01 +0100 Subject: [PATCH] Whitespace changes --- code/ColladaParser.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/code/ColladaParser.cpp b/code/ColladaParser.cpp index 5268255eb..b6fd73dfa 100644 --- a/code/ColladaParser.cpp +++ b/code/ColladaParser.cpp @@ -1868,7 +1868,7 @@ void ColladaParser::ReadIndexData( Mesh* pMesh) int attrCount = GetAttribute( "count"); size_t numPrimitives = (size_t) mReader->getAttributeValueAsInt( attrCount); - // material subgroup + // material subgroup int attrMaterial = TestAttribute( "material"); SubMesh subgroup; if( attrMaterial > -1) @@ -2113,12 +2113,12 @@ void ColladaParser::ReadPrimitives( Mesh* pMesh, std::vector& pPer switch( pPrimType) { case Prim_Lines: - numPoints = 2; + numPoints = 2; for (size_t currentVertex = 0; currentVertex < numPoints; currentVertex++) CopyPrimitive(currentVertex, numOffsets, numPoints, perVertexOffset, pMesh, pPerIndexChannels, currentPrimitive, indices); break; - case Prim_Triangles: - numPoints = 3; + case Prim_Triangles: + numPoints = 3; for (size_t currentVertex = 0; currentVertex < numPoints; currentVertex++) CopyPrimitive(currentVertex, numOffsets, numPoints, perVertexOffset, pMesh, pPerIndexChannels, currentPrimitive, indices); break; @@ -2133,7 +2133,7 @@ void ColladaParser::ReadPrimitives( Mesh* pMesh, std::vector& pPer break; case Prim_TriFans: case Prim_Polygon: - numPoints = indices.size() / numOffsets; + numPoints = indices.size() / numOffsets; for (size_t currentVertex = 0; currentVertex < numPoints; currentVertex++) CopyPrimitive(currentVertex, numOffsets, numPoints, perVertexOffset, pMesh, pPerIndexChannels, currentPrimitive, indices); break; @@ -2147,7 +2147,6 @@ void ColladaParser::ReadPrimitives( Mesh* pMesh, std::vector& pPer pMesh->mFaceSize.push_back( numPoints); } - // if I ever get my hands on that guy who invented this steaming pile of indirection... TestClosing( "p"); }