From 6439a719aae0092cc2b1374bbfe707f28d849f9d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 29 Jan 2003 17:24:54 +0000 Subject: [PATCH] Fixed CullVisitor::getDistanceFromEyePoint so that withLODScale is handled correctly. --- src/osgUtil/CullVisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgUtil/CullVisitor.cpp b/src/osgUtil/CullVisitor.cpp index a0a6b2fca..ffc946f06 100644 --- a/src/osgUtil/CullVisitor.cpp +++ b/src/osgUtil/CullVisitor.cpp @@ -161,7 +161,7 @@ float CullVisitor::getDistanceFromEyePoint(const osg::Vec3& pos, bool withLODSca float dist = distance(pos,matrix); if (withLODScale) return dist*getLODScale(); - else return dist*getLODScale(); + else return dist; } void CullVisitor::popProjectionMatrix()