SubDivision: fix compiler warning: unused variable.

pull/1130/head
Kim Kulling 2016-12-31 16:07:11 +01:00
parent 4e43763523
commit 6dfff37d8f
1 changed files with 3 additions and 4 deletions

View File

@ -532,9 +532,7 @@ void CatmullClarkSubdivider::InternSubdivide (
ai_assert(adj[o]-moffsets[nidx].first < mp->mNumFaces);
const aiFace& f = mp->mFaces[adj[o]-moffsets[nidx].first];
# ifdef ASSIMP_BUILD_DEBUG
bool haveit = false;
# endif
// find our original point in the face
for (unsigned int m = 0; m < f.mNumIndices; ++m) {
@ -555,15 +553,16 @@ void CatmullClarkSubdivider::InternSubdivide (
// fixme: replace with mod face.mNumIndices?
R += c0.midpoint+c1.midpoint;
# ifdef ASSIMP_BUILD_DEBUG
haveit = true;
# endif
break;
}
}
// this invariant *must* hold if the vertex-to-face adjacency table is valid
ai_assert(haveit);
if ( !haveit ) {
DefaultLogger::get()->warn( "OBJ: no name for material library specified." );
}
}
const float div = static_cast<float>(cnt), divsq = 1.f/(div*div);