Commit ca6d9946 authored by Jan Möbius's avatar Jan Möbius

Fixed cppcheck warnings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18733 383ad7c9-94d9-4d36-a494-682f7c89f535
parent fa7c141c
......@@ -886,9 +886,11 @@ DrawMeshT<Mesh>::createVBO()
// isolated vertex
int posID = i;
int f_id, c_id;
if (meshComp_)
if (meshComp_) {
int f_id, c_id;
posID = meshComp_->mapToOriginalVertexID(i, f_id, c_id);
}
// for (int k = 0; k < 3; ++k)
// vertices_[i].tex[k] = mesh_.normal( mesh_.vertex_handle(posID) )[k];
......@@ -921,9 +923,10 @@ DrawMeshT<Mesh>::createVBO()
// isolated vertex
int posID = i;
int f_id, c_id;
if (meshComp_)
if (meshComp_) {
int f_id, c_id;
posID = meshComp_->mapToOriginalVertexID(i, f_id, c_id);
}
// for (int k = 0; k < 2; ++k)
// vertices_[i].tex[k] = mesh_.texcoord2D( mesh_.vertex_handle(posID) )[k];
......@@ -962,9 +965,11 @@ DrawMeshT<Mesh>::createVBO()
// isolated vertex
int posID = i;
int f_id, c_id;
if (meshComp_)
if (meshComp_) {
int f_id, c_id;
posID = meshComp_->mapToOriginalVertexID(i, f_id, c_id);
}
// for (int k = 0; k < 2; ++k)
// vertices_[i].tex[k] = mesh_.texcoord2D( mesh_.vertex_handle(posID) )[k];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment