Commit a23deb60 authored by Martin Schultz's avatar Martin Schultz

fix for refined polyLine picking

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20612 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0615130e
......@@ -238,14 +238,8 @@ ACG::Vec3d PolyLineObject::refinePick(ACG::SceneGraph::PickTarget _pickTarget,
int eh;
if(line()->vertex_ehandles_available())
{
eh = line()->vertex_ehandle(_targetIdx);
}
else
{
eh = _targetIdx;
}
if(eh >= 0 && eh < (int)line()->n_edges())
{
......@@ -264,7 +258,7 @@ ACG::Vec3d PolyLineObject::refinePick(ACG::SceneGraph::PickTarget _pickTarget,
if ( _pickTarget == ACG::SceneGraph::PICK_VERTEX) {
// get picked vertex handle
int vh = line()->vertex_vhandle(_targetIdx);
int vh = _targetIdx;
if(vh>=0 && vh < (int)line()->n_vertices())
{
ACG::Vec3d hitpointNew = line()->point(vh);
......
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