summaryrefslogtreecommitdiff
path: root/indra/newview/llworld.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-09-25 16:40:05 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-09-25 16:40:05 -0600
commit456ff3949a28542ecd89ec23b0287b55a166529f (patch)
treea61697eeacdddce1c640533d71cd3def46192d77 /indra/newview/llworld.cpp
parentb16fb80906b4098b68d8f555998f42a3017ee095 (diff)
fix for SH-4295: Interesting: Teleporting to previous location leave some objects invisible.
Diffstat (limited to 'indra/newview/llworld.cpp')
-rwxr-xr-xindra/newview/llworld.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llworld.cpp b/indra/newview/llworld.cpp
index 9009626a03..d600abeb0a 100755
--- a/indra/newview/llworld.cpp
+++ b/indra/newview/llworld.cpp
@@ -684,6 +684,16 @@ void LLWorld::updateRegions(F32 max_update_time)
}
}
+void LLWorld::clearAllVisibleObjects()
+{
+ for (region_list_t::iterator iter = mRegionList.begin();
+ iter != mRegionList.end(); ++iter)
+ {
+ //clear all cached visible objects.
+ (*iter)->clearCachedVisibleObjects();
+ }
+}
+
void LLWorld::updateParticles()
{
LLViewerPartSim::getInstance()->updateSimulation();