summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-11-24 11:21:12 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-11-24 11:21:12 +0100
commit82751d64f90764739ea832eeda80f4d9a0cf4369 (patch)
treef2fb44db7a9448c213200c80645ae6dba02668f8
parent084a584773178b835ddb9ba671bfb91607d5bc3a (diff)
downloadMultimedia-82751d64f90764739ea832eeda80f4d9a0cf4369.tar.gz
Multimedia-82751d64f90764739ea832eeda80f4d9a0cf4369.zip
Force only even slices/stacks
-rw-r--r--src/glsphere.cpp4
1 files 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<GLPoint> *pointContainer,