From d003972a5fe34f739e67aaff06e1c0b82d0aef2c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 25 Feb 2008 13:17:30 +0000 Subject: [PATCH] From Wojciech Lawandowski, "Fixed EllipsoidModel::computeLocalUpVector to use Vec3d instead of Vec3 for normal computation. Its really small issue, maybe not even worth submitting ;-). But one never knows when inadequate precision hits him. " --- include/osg/CoordinateSystemNode | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osg/CoordinateSystemNode b/include/osg/CoordinateSystemNode index 34cd69bd1..ba6d9821a 100644 --- a/include/osg/CoordinateSystemNode +++ b/include/osg/CoordinateSystemNode @@ -218,7 +218,7 @@ inline void EllipsoidModel::computeLocalToWorldTransformFromXYZ(double X, double inline osg::Vec3d EllipsoidModel::computeLocalUpVector(double X, double Y, double Z) const { - osg::Vec3 normal(X,Y,Z); + osg::Vec3d normal(X,Y,Z); normal.normalize(); return normal; }