Fixed spatial groups.

This commit is contained in:
Robert Osfield 2005-02-11 17:22:55 +00:00
parent 8f90f57cc0
commit d5409942ee

View File

@ -2024,6 +2024,12 @@ bool Optimizer::SpatializeGroupsVisitor::divide(osg::Group* group, unsigned int
osg::notify(osg::INFO)<<"Dividing "<<group->className()<<" num children = "<<group->getNumChildren()<<" xAxis="<<xAxis<<" yAxis="<<yAxis<<" zAxis="<<zAxis<<std::endl;
if (!xAxis && !yAxis && !zAxis)
{
osg::notify(osg::INFO)<<" No axis to divide, stopping division."<<std::endl;
return false;
}
unsigned int numChildrenOnEntry = group->getNumChildren();
typedef std::pair< osg::BoundingBox, osg::ref_ptr<osg::Group> > BoxGroupPair;