diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-11-24 12:51:26 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-11-24 12:51:26 +0100 |
| commit | 46bca74beb8977f183e96bd38cfa514ccf9a09f5 (patch) | |
| tree | 26b508e7ad32c2905b73912403b1b922d173d7f2 /src/glsphere.cpp | |
| parent | 1c359b169dd1c103420c8e8a8c31db4861929eff (diff) | |
| download | Multimedia-46bca74beb8977f183e96bd38cfa514ccf9a09f5.tar.gz Multimedia-46bca74beb8977f183e96bd38cfa514ccf9a09f5.zip | |
Correct 'force even' behaviour
Diffstat (limited to 'src/glsphere.cpp')
| -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 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, |
