diff options
-rw-r--r-- | src/render/frontend/qspheremesh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/frontend/qspheremesh.cpp b/src/render/frontend/qspheremesh.cpp index 1624f5a36..7f739fa68 100644 --- a/src/render/frontend/qspheremesh.cpp +++ b/src/render/frontend/qspheremesh.cpp @@ -241,7 +241,7 @@ QMeshDataPtr createSphereMesh(double radius, int rings, int slices, bool hasTang offset += sizeof(float) * 4; } - int faces = (slices * 2) * (rings - 1); // two tris per slice, for all middle rings + int faces = (slices * 2) * (rings - 2); // two tris per slice, for all middle rings faces += 2 * slices; // tri per slice for both top and bottom QByteArray indexBytes; |