From 46bca74beb8977f183e96bd38cfa514ccf9a09f5 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Tue, 24 Nov 2015 12:51:26 +0100 Subject: Correct 'force even' behaviour --- src/glsphere.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glsphere.cpp b/src/glsphere.cpp index 8fedd0e..d8cfa4b 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 * 2 / 2; - m_slices = slices * 2 / 2; + m_stacks = (stacks / 2) * 2; + m_slices = (slices / 2) * 2; } void GLSphere::makeSurface(QVector *pointContainer, -- cgit v1.2.3-70-g09d2