summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-06-14 23:09:20 +0200
committerest31 <MTest31@outlook.com>2015-06-14 23:15:20 +0200
commitee38bcd307e1a2e0e8b010956eff432329f3e8d8 (patch)
tree28766078502e59836ea0748ffe3fa0d6dbf14e6f /src
parent43fcfbfe05578d7471d40c8c087fd04e24b264b5 (diff)
downloadminetest-ee38bcd307e1a2e0e8b010956eff432329f3e8d8.tar.gz
minetest-ee38bcd307e1a2e0e8b010956eff432329f3e8d8.tar.bz2
minetest-ee38bcd307e1a2e0e8b010956eff432329f3e8d8.zip
Automated whitespace error fix for last commit
Diffstat (limited to 'src')
-rw-r--r--src/mapblock_mesh.cpp2
-rw-r--r--src/mesh.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mapblock_mesh.cpp b/src/mapblock_mesh.cpp
index 9c755b102..79e3e81ba 100644
--- a/src/mapblock_mesh.cpp
+++ b/src/mapblock_mesh.cpp
@@ -1213,7 +1213,7 @@ MapBlockMesh::MapBlockMesh(MeshMakeData *data, v3s16 camera_offset):
p.tile.applyMaterialOptions(material);
}
}
-
+
// Create meshbuffer
scene::SMeshBufferTangents *buf = new scene::SMeshBufferTangents();
// Set material
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;
}
}