Skip to content
Snippets Groups Projects
Commit 47cfa59c authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

More opensim changes

parent b098d1a6
No related branches found
No related tags found
No related merge requests found
...@@ -647,6 +647,11 @@ LLViewerRegion::LLViewerRegion(const U64 &handle, ...@@ -647,6 +647,11 @@ LLViewerRegion::LLViewerRegion(const U64 &handle,
// Create the object lists // Create the object lists
initStats(); initStats();
initPartitions();
}
void LLViewerRegion::initPartitions()
{
//create object partitions //create object partitions
//MUST MATCH declaration of eObjectPartitions //MUST MATCH declaration of eObjectPartitions
...@@ -669,6 +674,12 @@ LLViewerRegion::LLViewerRegion(const U64 &handle, ...@@ -669,6 +674,12 @@ LLViewerRegion::LLViewerRegion(const U64 &handle,
setCapabilitiesReceivedCallback(boost::bind(&LLAvatarRenderInfoAccountant::scanNewRegion, _1)); setCapabilitiesReceivedCallback(boost::bind(&LLAvatarRenderInfoAccountant::scanNewRegion, _1));
} }
void LLViewerRegion::reInitPartitions()
{
std::for_each(mImpl->mObjectPartition.begin(), mImpl->mObjectPartition.end(), DeletePointer());
mImpl->mObjectPartition.clear();
initPartitions();
}
void LLViewerRegion::initStats() void LLViewerRegion::initStats()
{ {
......
...@@ -458,10 +458,12 @@ class LLViewerRegion final : public LLCapabilityProvider // implements this inte ...@@ -458,10 +458,12 @@ class LLViewerRegion final : public LLCapabilityProvider // implements this inte
}; };
void showReleaseNotes(); void showReleaseNotes();
void reInitPartitions();
protected: protected:
void disconnectAllNeighbors(); void disconnectAllNeighbors();
void initStats(); void initStats();
void initPartitions();
public: public:
LLWind mWind; LLWind mWind;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment