From ee38bcd307e1a2e0e8b010956eff432329f3e8d8 Mon Sep 17 00:00:00 2001 From: est31 Date: Sun, 14 Jun 2015 23:09:20 +0200 Subject: Automated whitespace error fix for last commit --- src/mesh.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesh.cpp') diff --git a/src/mesh.cpp b/src/mesh.cpp index 6c7c6d37b..4f70b7fa2 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -106,7 +106,7 @@ void scaleMesh(scene::IMesh *mesh, v3f scale) const u32 stride = getVertexPitchFromType(buf->getVertexType()); u32 vertex_count = buf->getVertexCount(); u8 *vertices = (u8 *)buf->getVertices(); - for (u32 i = 0; i < vertex_count; i++) + for (u32 i = 0; i < vertex_count; i++) ((video::S3DVertex *)(vertices + i * stride))->Pos *= scale; buf->recalculateBoundingBox(); @@ -134,7 +134,7 @@ void translateMesh(scene::IMesh *mesh, v3f vec) const u32 stride = getVertexPitchFromType(buf->getVertexType()); u32 vertex_count = buf->getVertexCount(); u8 *vertices = (u8 *)buf->getVertices(); - for (u32 i = 0; i < vertex_count; i++) + for (u32 i = 0; i < vertex_count; i++) ((video::S3DVertex *)(vertices + i * stride))->Pos += vec; buf->recalculateBoundingBox(); @@ -160,7 +160,7 @@ void setMeshColor(scene::IMesh *mesh, const video::SColor &color) const u32 stride = getVertexPitchFromType(buf->getVertexType()); u32 vertex_count = buf->getVertexCount(); u8 *vertices = (u8 *)buf->getVertices(); - for (u32 i = 0; i < vertex_count; i++) + for (u32 i = 0; i < vertex_count; i++) ((video::S3DVertex *)(vertices + i * stride))->Color = color; } } -- cgit v1.2.3