diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-11-24 11:21:12 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-11-24 11:21:12 +0100 |
| commit | 82751d64f90764739ea832eeda80f4d9a0cf4369 (patch) | |
| tree | f2fb44db7a9448c213200c80645ae6dba02668f8 /src | |
| parent | 084a584773178b835ddb9ba671bfb91607d5bc3a (diff) | |
| download | Multimedia-82751d64f90764739ea832eeda80f4d9a0cf4369.tar.gz Multimedia-82751d64f90764739ea832eeda80f4d9a0cf4369.zip | |
Force only even slices/stacks
Diffstat (limited to 'src')
| -rw-r--r-- | src/glsphere.cpp | 4 |
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, |
