diff options
author | Dave Parks <davep@lindenlab.com> | 2011-05-26 20:37:39 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-05-26 20:37:39 -0500 |
commit | 35c4635dca83708a09ac8f15e30aec146210fba7 (patch) | |
tree | d821a4c5cfa4ce614eb79d85f7f3a4c0485f6ce4 /indra/newview/llviewerobjectlist.cpp | |
parent | 99bd9bb56ba8d834c91955940801b6d2ac46e627 (diff) | |
parent | 53e890f4fdab1ab014b745c5d872b240b8c4ce76 (diff) |
merge
Diffstat (limited to 'indra/newview/llviewerobjectlist.cpp')
-rw-r--r-- | indra/newview/llviewerobjectlist.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/indra/newview/llviewerobjectlist.cpp b/indra/newview/llviewerobjectlist.cpp index 78b06b0764..45c6777ae8 100644 --- a/indra/newview/llviewerobjectlist.cpp +++ b/indra/newview/llviewerobjectlist.cpp @@ -1497,6 +1497,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) { |