Fixed the compute of the extents/bounding sphere

This commit is contained in:
Robert Osfield
2009-08-27 19:25:23 +00:00
parent ca78f3a6bc
commit 79f780d4b8
2 changed files with 21 additions and 2 deletions

View File

@@ -85,7 +85,14 @@ bool Locator::computeLocalBounds(Locator& source, osg::Vec3d& bottomLeft, osg::V
if (corners.empty()) return false;
for(Corners::iterator itr = corners.begin();
Corners::iterator itr = corners.begin();
bottomLeft.x() = topRight.x() = itr->x();
bottomLeft.y() = topRight.y() = itr->y();
++itr;
for(;
itr != corners.end();
++itr)
{