Octree capacites/radii/distances definable via settings.
This commit is contained in:
@@ -1117,6 +1117,24 @@ void LLViewerObjectList::shiftObjects(const LLVector3 &offset)
|
||||
LLWorld::getInstance()->shiftRegions(offset);
|
||||
}
|
||||
|
||||
void LLViewerObjectList::repartitionObjects()
|
||||
{
|
||||
for (vobj_list_t::iterator iter = mObjects.begin(); iter != mObjects.end(); ++iter)
|
||||
{
|
||||
LLViewerObject* objectp = *iter;
|
||||
if (!objectp->isDead())
|
||||
{
|
||||
LLDrawable* drawable = objectp->mDrawable;
|
||||
if (drawable && !drawable->isDead())
|
||||
{
|
||||
drawable->updateBinRadius();
|
||||
drawable->updateSpatialExtents();
|
||||
drawable->movePartition();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//debug code
|
||||
bool LLViewerObjectList::hasMapObjectInRegion(LLViewerRegion* regionp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user