summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/glsphere.cpp4
1 files 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<GLPoint> *pointContainer,