From Glenn Waldron, "osgTerrain::Locator::setTransformAsExtents() does not update the _inverse member. Fix attached.

"
This commit is contained in:
Robert Osfield 2008-10-06 09:39:43 +00:00
parent 45085f3eea
commit 9cce90e920

View File

@ -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)