From 37be1d9259a12ee93d2f2e6f6b1e4f7656026c80 Mon Sep 17 00:00:00 2001 From: Don BURNS Date: Thu, 9 Feb 2006 19:31:05 +0000 Subject: [PATCH] Fixed a bug spotted in UFOManipulator where a Vec3's 4th component was being inspected (ip[3]). --- src/osgGA/UFOManipulator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgGA/UFOManipulator.cpp b/src/osgGA/UFOManipulator.cpp index 486825f56..ae71c199b 100644 --- a/src/osgGA/UFOManipulator.cpp +++ b/src/osgGA/UFOManipulator.cpp @@ -144,8 +144,8 @@ void UFOManipulator::computeHomePosition() hitr!=hitList.end(); ++hitr) { osg::Vec3d ip = hitList.front().getWorldIntersectPoint(); - if( fabs(ip[3]) < ground ) - ground = ip[3]; + if( fabs(ip[2]) < ground ) + ground = ip[2]; } } else