From 82751d64f90764739ea832eeda80f4d9a0cf4369 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Tue, 24 Nov 2015 11:21:12 +0100 Subject: Force only even slices/stacks --- src/glsphere.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glsphere.cpp b/src/glsphere.cpp index b5e6c4a..15f745a 100644 --- a/src/glsphere.cpp +++ b/src/glsphere.cpp @@ -3,8 +3,8 @@ GLSphere::GLSphere(double radius, int stacks, int slices) : GLBody(radius) { - m_stacks = stacks; - m_slices = slices; + m_stacks = stacks * 2 / 2; + m_slices = slices * 2 / 2; } void GLSphere::makeSurface(QVector *pointContainer, -- cgit v1.2.3-70-g09d2