diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2013-10-30 11:37:53 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2013-10-30 11:37:53 -0600 |
commit | 787ff3937d697526284e8d0a812a7353ad916dea (patch) | |
tree | b2580fd3169b91d11910858f5c983359c43d6bdb /indra/newview/llviewerregion.cpp | |
parent | 84bd9f980b3b65d609d1a8611d6ad99587d9aafe (diff) |
fix for SH-4584: Interesting: objectprojectionAreaCutOFF hides large objects on adjacent regions.
Diffstat (limited to 'indra/newview/llviewerregion.cpp')
-rwxr-xr-x | indra/newview/llviewerregion.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index 23660dd3ce..cbce2674a7 100755 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -1071,6 +1071,8 @@ F32 LLViewerRegion::updateVisibleEntries(F32 max_time) const U32 cur_frame = LLViewerOctreeEntryData::getCurrentFrame(); bool needs_update = ((cur_frame - mImpl->mLastCameraUpdate) > 5) && ((camera_origin - mImpl->mLastCameraOrigin).lengthSquared() > 10.f); U32 last_update = mImpl->mLastCameraUpdate; + LLVector4a local_origin; + local_origin.load3((camera_origin - getOriginAgent()).mV); //process visible entries for(LLVOCacheEntry::vocache_entry_set_t::iterator iter = mImpl->mVisibleEntries.begin(); iter != mImpl->mVisibleEntries.end();) @@ -1149,7 +1151,7 @@ F32 LLViewerRegion::updateVisibleEntries(F32 max_time) continue; } - vo_entry->calcSceneContribution(camera_origin, needs_update, last_update); + vo_entry->calcSceneContribution(local_origin, needs_update, last_update); mImpl->mWaitingList.insert(vo_entry); } } |