Skip to content

Commit

Permalink
examples/qt3d-geometry/mycylinder.cpp - silence -Wunused-variable
Browse files Browse the repository at this point in the history
  • Loading branch information
winterz committed Sep 7, 2016
1 parent 1b33d48 commit 2008d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/qt3d-geometry/mycylinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ void MyCylinderGeometry::createSidesIndices(quint16 *&indicesPtr)
void MyCylinderGeometry::createDiscIndices(quint16 *&indicesPtr, int discCenterIndex, float yPosition)
{
//! [Wrong bottom disc indexes]
const auto yNormal = (yPosition < 0.0f) ? -1.0f : 1.0f;
//const auto yNormal = (yPosition < 0.0f) ? -1.0f : 1.0f;
for (auto slice = 0; slice < m_slices; ++slice) {
const auto nextSlice = slice + 1;
*indicesPtr++ = discCenterIndex;
Expand Down

0 comments on commit 2008d50

Please sign in to comment.