Commit 38f8b1aa authored by Ellen Dekkers's avatar Ellen Dekkers

ACG/Scenegraph: MeshNode: Compiler warning fixed

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5460 383ad7c9-94d9-4d36-a494-682f7c89f535
parent da445b01
......@@ -1235,18 +1235,22 @@ pick_faces(GLState& _state)
if ( mesh_.n_faces() > 0 )
{
if (!_state.pick_set_maximum (mesh_.n_faces()))
{
omerr() << "MeshNode::pick_faces: color range too small, "
<< "picking failed\n";
return;
}
}
else
{
if (!_state.pick_set_maximum (1))
{
omerr() << "Strange pickSetMAximum failed for index 1 in MeshNode\n";
return;
}
}
if (faceList_ && !updateFaceList_ && _state.pick_current_index () == faceBaseIndex_)
{
......
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