From 9cce90e9207a76e5987b1132381dde47ad5926c9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 6 Oct 2008 09:39:43 +0000 Subject: [PATCH] From Glenn Waldron, "osgTerrain::Locator::setTransformAsExtents() does not update the _inverse member. Fix attached. " --- src/osgTerrain/Locator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgTerrain/Locator.cpp b/src/osgTerrain/Locator.cpp index 323d38028..9cfeae025 100644 --- a/src/osgTerrain/Locator.cpp +++ b/src/osgTerrain/Locator.cpp @@ -52,6 +52,8 @@ void Locator::setTransformAsExtents(double minX, double minY, double maxX, doubl 0.0, maxY-minY, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, minX, minY, 0.0, 1.0); + + _inverse.invert(_transform); } bool Locator::computeLocalBounds(Locator& source, osg::Vec3d& bottomLeft, osg::Vec3d& topRight)