Fixed a cut-n-paste error in the ground intersects.

This commit is contained in:
Don BURNS
2006-04-21 17:16:49 +00:00
parent d29da5baed
commit 585f1d0f68

View File

@@ -140,13 +140,9 @@ void UFOManipulator::computeHomePosition()
if (iv.hits())
{
osgUtil::IntersectVisitor::HitList& hitList = iv.getHitList(seg.get());
for(osgUtil::IntersectVisitor::HitList::iterator hitr=hitList.begin();
hitr!=hitList.end(); ++hitr)
{
osg::Vec3d ip = hitList.front().getWorldIntersectPoint();
if( fabs(ip[2]) < ground )
ground = ip[2];
}
osg::Vec3d ip = hitList.front().getWorldIntersectPoint();
if( fabs(ip[2]) < ground )
ground = ip[2];
}
else
{